MySQL query performance analysis

analysis:

  1. Observation, at least four hours start to see slow SQL production situation.
  2. Turn on slow query log, set thresholds, such as more than 5 seconds is slow SQL, and grab it out.
  3. explain + slow SQL analysis
  4. show profile
  5. Operation and maintenance manager or DBA, parameter tuning SQL database server.

to sum up:

  1. Open and capture slow query
  2. explain + slow SQL analysis
  3. show profile query in SQL Server MYSQL implementation details inside and lifecycle situation
  4. Parameter Tuning SQL database server
Published 217 original articles · won 125 Like · views 10000 +

Guess you like

Origin blog.csdn.net/qq_39885372/article/details/104191526