Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: Hundreds of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 16 Topic 3157 of 3295
Post > Topic >>

Re: Hundreds of columns, index on all of those.

by Marco Mariani <marco@[EMAIL PROTECTED] > May 6, 2008 at 01:08 PM

rock_sand81@[EMAIL PROTECTED]
 wrote:

> The size of the DB would increase quite a lot, because each field /
> column ID would need Item ID.

I meant the total size of indexes. I expect 900 indexes would take up 
more size than 1 huge index on the same data.

I still cannot fathom the application domain you're working in, and I 
suspect no specific suggestions can be made without further 
understanding the requirements.

Anyway, with DBs, performance issues are often non-trivial to understand .
In your case you should really start with a normalized schema. Then, 
after testing and probably analyzing some query throgh the optimizer, 
see if you need to change/partition/whatever your indexes.

Say, partitioning the data by the group ID could be a way to.. to what? 
I don't know, it could be helpful or not. Needs to be tested.

I suggest, for instance, The Art Of SQL (google for it) as it covers 
several issues with indexing.

> Would it be wise (or stupid) to add the group ID also to Table 2 to
> make the query fast?

It would probably be useful. But you need to test.

>> hence I can say: go for it.
>> Trade your columns with rows and you'll be much happier.
> 
> That might be the only possiblity.

Also, did you tell which DBMS you're using?
 




 16 Posts in Topic:
Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-06 00:05:09 
Re: Hundreds of columns, index on all of those.
Jeff North <jnorth@[EM  2008-05-06 07:54:21 
Re: Hundreds of columns, index on all of those.
Marco Mariani <marco@[  2008-05-06 10:05:27 
Re: Hundreds of columns, index on all of those.
Thomas Kellerer <YQDHX  2008-05-06 15:15:31 
Re: Hundreds of columns, index on all of those.
Marco Mariani <marco@[  2008-05-06 10:09:02 
Re: Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-06 03:25:50 
Re: Hundreds of columns, index on all of those.
Marco Mariani <marco@[  2008-05-06 13:08:06 
Re: Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-06 04:41:23 
Re: Hundreds of columns, index on all of those.
Marco Mariani <marco@[  2008-05-06 15:06:57 
Re: Hundreds of columns, index on all of those.
Ed Prochak <edprochak@  2008-05-06 05:45:54 
Re: Hundreds of columns, index on all of those.
--CELKO-- <jcelko212@[  2008-05-07 09:51:29 
Re: Hundreds of columns, index on all of those.
"David Cressey"  2008-05-07 19:26:47 
Re: Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-07 22:23:56 
Re: Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-07 23:34:52 
Re: Hundreds of columns, index on all of those.
Ed Prochak <edprochak@  2008-05-08 05:29:54 
Re: Hundreds of columns, index on all of those.
rock_sand81@[EMAIL PROTEC  2008-05-09 04:04:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 9:34:19 CST 2008.