Topic awaiting preservation: Database design question(s) |
|
---|---|
Author | Thread |
Lunatic (VI) Inmate From: under the bed |
posted 03-14-2008 15:38
So I am curious about the possible pros and cons of different ways of setting up a database for a project I have going. |
Lunatic (VI) Mad Scientist From: Happy Hunting Grounds... |
posted 03-14-2008 16:04
This is from someone that I know that has looked at your question, DL. They have more knowledge on these things than I do. quote:
|
Lunatic (VI) Inmate From: under the bed |
posted 03-14-2008 16:47
I had been thinking along those lines. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 03-14-2008 17:27
Keep data normalized. Things that are one-to-one belong into the same table, and the engines are very good at optimizing, especially if you have fixed size fields and indices at the right columns. |
Paranoid (IV) Inmate From: cell 3736 |
posted 03-14-2008 18:28
Just make sure you don't query more fields than you need if you use one table. And as TP suggested in the case of one-to-one relations it's ok to hold the data in one table. This might be obvious to you but avoid things like comma separated lists in a string field etc ... if something requires extra processing every time it's queried it's probably done incorrectly. Somehow to alot of people this isn't obvious. |
Lunatic (VI) Inmate From: under the bed |
posted 03-15-2008 17:29
Thanks. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 03-16-2008 10:48
Having lots of columns is not a bad thing. code: select o.* from orders o join addresses a on o.address_id = a.id
|