Performance Tuning SQL - How?

后端 未结 4 2162
终归单人心
终归单人心 2020-12-25 09:21

How does one performance tune a SQL Query?

  • What tricks/tools/concepts can be used to change the performance of a SQL Query?
  • How can t
4条回答
  •  温柔的废话
    2020-12-25 09:59

    Here are some basic steps which we can follow to increase the performance:

    1. Check for indexes in pk and fk for the tables involved if it is still taking time index the columns present in the query.
    2. All indexes are modified after every operation so kindly do not index each and every column
    3. Before batch insertion delete the indexes and then recreate the indexes.
    4. Select sparingly
    5. Use if exists instead of count
    6. Before accusing dba first check network connections

提交回复
热议问题