Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MySQL InnoDB checkpoint mechanism

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

InnoDB implements the checkpoint mechanism by invoking a fuzzy checkpoint. InnoDB refreshes modified database pages from the buffer pool in small batches. This eliminates the need to refresh the entire buffer pool in one batch

Because of this truth, it is possible to stop the user SQL statement from running the process for a period of time.

In crash recovery InnoDB checks the checkpoint label recorded in the log file when the crash is repaired. It knows that all changes to the database before the label have been recorded in the disk mirror of the database.

InnoDB then scans the log after the checkpoint in the log file and logs the changes to the database.

InnoDB records the log file in a circular manner. All committed changes that make the database pages in the buffer pool different from the disk mirror must be recorded in the log file in case InnoDB needs to be restored.

This means that InnoDB re-enables a log file in a circular manner, and it must make sure that the operation log results in the log file that will be reused have been included in the disk image file. In another sentence,

That is, InnoDB must frequently establish checkpoints and update modified database pages to disk.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report