Topic awaiting preservation: MySQL design question |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-26-2006 21:16
I have a tendency to design a user table in mysql as two tables |
Nervous Wreck (II) Inmate From: Cleveland, OH |
posted 10-26-2006 23:41
Don't bother seperating it. Instead, just create keys: |
Lunatic (VI) Inmate From: under the bed |
posted 10-27-2006 01:53
I am clearly no expert on these issues, but as far as I understand, it makes no difference whatsoever how many fields are in your table - if you are only calling for the user_id, user_name, and user_pass, aren't those the only fields that will make a difference in your query speed? |
Paranoid (IV) Inmate From: Paris, France |
posted 10-27-2006 04:39
Yep DL you are right. |
Paranoid (IV) Inmate From: Australia |
posted 11-22-2006 02:02
The only reason I separate things like user data is for things like profiles, where you might be adding/removing keys (which would otherwise be columns). When the data remains consistent and is to be expected you might as well put it in the first table. |