The process of Mysql submitting big SQL

Source: Internet
Author: User

1 SQL Commit, MySQL server first check the size of SQL by parameter max_allowed_packet , if exceeded, direct prompt MySQL go away.

2 server from the store will need to modify the data page load into memory (subject to innodb_buffer_pool_size).

3 Write the page and write redo undo log at the same time.

4 If SQL size exceeds the buffer setting (Innodb_log_file_size,innodb_log_files_in_group) of redo undo log, redo Undo log is written to disk.

Such changes can be observed through the parameter Innodb_log_waits (show global Status).

5 When commit occurs, the Undo/redo log is first committed to disk, and then the Dirty page is written to disk (and may still be cached in innodb_buffer_pool_size).

6 If the failure to complete the power outage, at this time before checkpoint data can be correctly guaranteed consistency and principle.

Cond

The process of Mysql submitting big SQL

Related Article

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.