The difference between parsing mysql binary logs to process transactions and non-transactional statements

Source: Internet
Author: User

During the execution of transactional statements, the server will perform additional processing. When the server executes multiple transactions in parallel, in order to record them together, the concept of transaction cache needs to be introduced. Refresh the transaction to the binary log when the transaction is committed. Processing of non-transactional statements.Follow the following three rules:

1) if a non-transactional statement is marked as a transactional statement, it is written to the transaction buffer.

2) if it is not marked as a transactional statement and is not in the transaction cache, binary logs are written directly.

3) write the transaction buffer if it is not marked as transactional but there is a transaction cache.

Note:If a non-transactional statement exists in a transaction, rule 2 is used to write the statements that affect the non-transactional table directly to the binary log.

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.