-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10.8 Understanding the Query Execution Plan.md
- Loading branch information
1 parent
439926c
commit 8afd865
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
原文地址:https://dev.mysql.com/doc/refman/8.0/en/execution-plan-information.html | ||
|
||
|
||
|
||
## 10.8 Understanding the Query Execution Plan | ||
|
||
- [10.8.1 Optimizing Queries with EXPLAIN](https://dev.mysql.com/doc/refman/8.0/en/using-explain.html) | ||
- [10.8.2 EXPLAIN Output Format](https://dev.mysql.com/doc/refman/8.0/en/explain-output.html) | ||
- [10.8.3 Extended EXPLAIN Output Format](https://dev.mysql.com/doc/refman/8.0/en/explain-extended.html) | ||
- [10.8.4 Obtaining Execution Plan Information for a Named Connection](https://dev.mysql.com/doc/refman/8.0/en/explain-for-connection.html) | ||
- [10.8.5 Estimating Query Performance](https://dev.mysql.com/doc/refman/8.0/en/estimating-performance.html) | ||
|
||
Depending on the details of your tables, columns, indexes, and the conditions in your `WHERE` clause, the MySQL optimizer considers many techniques to efficiently perform the lookups involved in an SQL query. A query on a huge table can be performed without reading all the rows; a join involving several tables can be performed without comparing every combination of rows. The set of operations that the optimizer chooses to perform the most efficient query is called the “query execution plan”, also known as the [`EXPLAIN`](https://dev.mysql.com/doc/refman/8.0/en/explain.html) plan. Your goals are to recognize the aspects of the [`EXPLAIN`](https://dev.mysql.com/doc/refman/8.0/en/explain.html) plan that indicate a query is optimized well, and to learn the SQL syntax and indexing techniques to improve the plan if you see some inefficient operations. |