I have to开发者_运维百科 make a database which will be having 200000 rows in table1 & 10000 rows in table2,3,4,5 like that. i will be using mysql. so which approach will give me faster result.
- Distributing data to multiple tables,
- Keeping less number of tables with lots of rows.
What is the speed of mysql to traverse a table and to join them & traverse.
Your first concern about table design should be normalization and correct indexes.
If you encounter performance deficits (I doubt that with 200000 rows, thats not that much), then measure the difference with normalized and denormalized structures.
Only denormalize after you have benchmarked and confirmed that the denormalized structure is really faster. So, if your number two means normalized tables with 200 000 rows, I would go with number two.
精彩评论