posidyn
Member
- Messages
- 65
- Reaction score
- 0
- Points
- 6
Hello Everyone.
A database with one table with all data in it or a database with many on-the-fly generated tables with less data in each table.
Which is better for performance and which is better practise?
Eg.
I want a database that stores people's names and what cars they have owned and duration of ownership.
Option 1.
Have 1 large table that stores all the information and as people add themselves or more cars, a new entry is added to the 1 large table.
Option 2.
Each person that registers creates a new table (dynamically created) and stores one person's cars in that one table.
There will be a separate table that stores which person uses which table in the database.
Which option above is best for performance and is best practise?
Or is there something else that is even better than the above?
Thank you.
A database with one table with all data in it or a database with many on-the-fly generated tables with less data in each table.
Which is better for performance and which is better practise?
Eg.
I want a database that stores people's names and what cars they have owned and duration of ownership.
Option 1.
Have 1 large table that stores all the information and as people add themselves or more cars, a new entry is added to the 1 large table.
Option 2.
Each person that registers creates a new table (dynamically created) and stores one person's cars in that one table.
There will be a separate table that stores which person uses which table in the database.
Which option above is best for performance and is best practise?
Or is there something else that is even better than the above?
Thank you.