MySQL optimization how to analyze SQL through execution plan (explain)

 

What is an execution plan

 

The SQL execution plan is a SQL statement , and what is done step by step when it is actually executed in the database. The execution plan of SQL reflects the execution efficiency of SQL. The specific execution method is as follows: Just add the explain keyword in front of the executed SQL;

 

 

Summary of common fields

 

The execution plan has many attributes, and different attributes contain multiple different parameters. So here we list the most commonly used attributes and fields to explain.

 

 

 

 

 

 

 

Published 568 original articles · Like 180 · Visits 180,000+

Guess you like

Origin blog.csdn.net/Delicious_Life/article/details/105599062