开发者

which is efficient way to make a database using mysql for faster retriving

开发者 https://www.devze.com 2023-03-23 18:19 出处:网络
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.

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.

  1. Distributing data to multiple tables,
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消