简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM