Home > Database > Mysql Tutorial > what is mysql optimizer

what is mysql optimizer

藏色散人
Release: 2020-07-01 09:14:32
Original
3402 people have browsed it

mysql optimizer refers to the query optimizer. The SQL statement will use the query optimizer to optimize the query before querying. The syntax is such as "select uid,name from user where gender = 1;".

what is mysql optimizer

Optimizer: Query optimizer

The SQL statement will use the query optimizer to optimize the query before querying. He uses the "select-projection-join" strategy for querying.

You can understand it with an example: select uid,name from user where gender = 1;

This select query first selects based on the where statement, instead of querying all the tables first. Perform gender filtering;

This select query first performs attribute projection based on uid and name, instead of taking out all attributes and then filtering;

Connect these two query conditions to generate the final query result.

Recommended: "mysql tutorial"

The above is the detailed content of what is mysql optimizer. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template