MySQL query plan

Source: Internet
Author: User
Tags mysql query

MySQL query plan

1: Client initiates query request

2: After the server receives the request, queries the cache first if the cache hits, returns the data directly to the client otherwise, resolves the SQL

After the 3:sql parsing is complete, the preprocessing

4: There is a query optimizer survival query plan

5: Call the storage engine through the API interface to go to disk to access the data that needs to be queried, and then return to the client through the query execution engine

It is worth mentioning that: the MySQL client communicates with the server, using half-duplex communication, that is, always only one party is sending the data.

After the client sends the request, it can only wait for the server to return the data, this protocol makes MySQL communication simple and fast, but also restricts the traffic packet, the client cannot

Chunked send requests, and the data returned by the service side, the large amount of data is usually returned to the client by dividing into multiple small packets, and the client should also be aware of receiving the complete packet, not the breakpoint

The receiving part, resulting in the loss of data.

MySQL query plan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.