当前位置:网站首页>MySQL implements transaction persistence using redo logs
MySQL implements transaction persistence using redo logs
2022-06-28 07:56:00 【star++】
summary
Mentioned earlier , In order to reduce the io operation , The loaded data page will be placed in Buffer pool, Wait until the time to brush the plate , Only then can the page data be really brushed to the disk for persistence . Suppose the modified dirty page , When the transaction has been committed , A sudden power failure , Then the modified dirty pages are lost , There is no way to ensure the persistence of transactions . This is the time redo Logs come in handy .
redo Log principle

1. When executing a write statement , First, it will be loaded into Buffer pool In the cache page of , Then modify the data in the page , Add to
flush In the list , We know that if the power is cut off at this time , The data is actually changed in memory , Data loss ,
This modified dirty page can no longer be recovered .
2. Add to flush In the list , In fact, it will be written into a file called redo Log file , Of course not directly , Direct is too slow ,
In fact, I first wrote a book called log buffer in , One is written each time mtr( Indivisible log group ), It can be understood as a log group .
How many bytes are written , So this lsn Record the offset .
3. If the power is cut off at this time , Or will it lead to log buffer Data loss for , Persistence is still not guaranteed . therefore , In fact, at some time
Go and put log buffer Of mtr Refresh to the real physics text 边栏推荐
- MySQL installation and environment variable configuration
- Section 9: dual core startup of zynq
- Co process, asyncio, asynchronous programming
- Configuring multiple instances of MySQL under Linux
- Cloud native: cloud computing technology is upgraded again to open an era of comprehensive cloud development
- Sentinel mechanism of redis cluster
- Ice, protobuf, thrift -- Notes
- HJ明明的随机数
- Dataset filling data, and the use of rows and columns
- 【js】-【节流、防抖函数】
猜你喜欢

Online WPS tool

flex布局

At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions

Tencent continued to lay off staff in the second half of the year, and all business groups reduced by at least 10%. What do you think of this? Followers

sql主从复制搭建

Section 5: zynq interrupt

Idea package together, using compact middle packages to solve &

"Three routines" of digital collection market

分析 NFT 项目的 5 个指标

Disposition Flex
随机推荐
A single node obtains the lock lock of the order number
Section VII starting principle and configuration of zynq
HJ score ranking
逆波兰表达式求值<难度系数>
Hash slot of rediscluster cluster cluster implementation principle
[JS] - [throttling and anti shake function]
Configuring multiple instances of MySQL under Linux
LeetCode之三步问题
Airflow2.1.1 summary of the pits stepped on in actual combat!!
Upgrade HDP spark to spark 2.4.8 without upgrading ambari
Real time database - Notes
Kubernetes cluster command line tool kubectl
HJ删除字符串中出现次数最少的字符
SQL master-slave replication setup
Design and implementation of spark offline development framework
Ice, protobuf, thrift -- Notes
Analyze 5 indicators of NFT project
asp. Net datalist when there are multiple data displays
ACM笔记
HJ delete the character with the least number of occurrences in the string