Home >Database >Mysql Tutorial >what is mysql optimizer

what is mysql optimizer

藏色散人
藏色散人Original
2020-07-01 09:14:323430browse

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!

Statement:
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
Previous article:what are mysql connectorsNext article:what are mysql connectors