Reputation: 1090
I have a table:
tblA
ID = Autonumber
Price = Number
Name = Text
The field [Name] contains values from a list. The list has 2-3 values.
I will add 2more values in the list, so total 5values.
What is better for performance for my database. The field to be list or create another table and place there the values? What is better for database size and speed?
New Design:
tblA tblB
ID = Autonumber NameID = Autonumber
Price = Number Name = Text
NameID = Number
Thank you.
Upvotes: 0
Views: 153
Reputation: 12353
A lookup table is better than creating a Value list.
A lookup table is easy to maintain whereas as Value list are kind of hardcoded and gets difficult especially when the list grows gradually.
You can add sort_by
Number field in tblB
for custom sorting the list
You can add inactive
Yes/No field in tblB
to easily turn off any value
New table design will reduce the database size as it avoids data redundancy.
Set Name as primary key in tblB which will automatically create index and help to speed up. Speed impact would be more seen in case database grows huge or poor network connection.
Upvotes: 1