How to tell if a query will scale well?

前端 未结 5 1079
轮回少年
轮回少年 2021-02-09 01:09

What are some of the methods/techniques experienced SQL developers use to determine if a particular SQL query will scale well as load increases, rows in associated tables increa

5条回答
  •  轮回少年
    2021-02-09 01:50

    don't make tables wide, keep them narrow as well as the indexes. Make sure that queries are fully covered by indexes and that those queries are SARGable.

    Test with a ton of data before going in production, take a look at this: Your testbed has to have the same volume of data as on production in order to simulate normal usage

提交回复
热议问题