当前位置:网站首页>MySQL: redo log log - notes for personal use
MySQL: redo log log - notes for personal use
2022-08-09 04:19:00 【_Sauron】
Foreword
The ACD characteristics (atomicity, consistency, and durability) of transactions are guaranteed by the undo log and redo log. The redo log is not recorded until the transaction commits, but after the begin begins.
redo log
redo log: redo log, used to record changes in transaction operations to ensure transaction durability.The redo log starts recording after the transaction starts, regardless of whether the transaction is committed or not, it will be recorded. When an exception occurs (such as a power failure during data persistence), InnoDB will use the redo log to restore to the moment before the power failure to ensure data integrity.completeness.
The default value of innodb_log_buffer_size is 16M, which is the size of the redo log buffer. It starts to write the redo
log as the transaction starts. If the transaction is relatively large, in order to avoid spending too much disk IO during transaction execution, it can be setA relatively large redo log cache saves disk IO.
InnoDB modifies the operation data, not directly modifies the data on the disk, but actually modifies the data in the Buffer Pool.InnoDB always records the data changes in the Buffer Pool to the redo log first for data recovery after a crash.First record the redo log, and then slowly flush the dirty data in the Buffer Pool to the disk.
Two files in the directory specified by innodb_log_group_home_dir: ib_logfile0, ib_logfile1, which are called redo logs.
buffer pool:
Function: Accelerate reading and writing, directly operate the data page, and write redo log modification is completed, there is a special thread to write the dirty page in the buffer
pool to disk.
边栏推荐
- 单根k线图知识别以为自己都懂了
- 浅谈进程与其创建方式
- 钉钉与RStudio快捷方式冲突--钉钉快捷键设置
- 「竞品分析报告」不会写?不知从哪收集数据?请收下这篇竞品指南
- 人类微生物组和缺失遗传力--读论文
- (a) 7 classes and objects
- If A, B, C, and D process parts, the total number of processed parts is 370. If the number of parts processed by A is 10 more, if the number of parts processed by B is 20 less, if the number of parts
- 容易混淆的指针知识点
- 【OpenCV】-查找并绘制轮廓
- Flask框架实现异步处理请求
猜你喜欢
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:维纳滤波器Wiener Filter,LMS
自动化测试-图片中添加文字注释,添加到allure测试报告中
模型包装,答辩吹牛方法论!
稳定性测试怎么做,这篇文章彻底讲透了!
3年半测试经验,20K我都没有,看来是时候跳槽了...
Go常用命令与基础语法
LeetCode-从链表中删去总和值为零的连续结点
了解CV和RoboMaster视觉组(五)目标跟踪:概述与光流法
【平衡二叉搜索树】细撕AVL树的插入操作
Improve the user experience and add a small detail to your modal popup
随机推荐
gopacket使用示例
遗传力缺失的案例
查询某时间段获得的积分总积分的大小进行排序
NanoDet代码逐行精读与修改(零)Architecture
使用ceph-deploycep集群部署,并用3个磁盘作为专用osd
基因对疾病的影响规律--读论文
simple math formula calculation
了解CV和RoboMaster视觉组(五)目标跟踪:基于深度学习的方法
30 norm
了解CV和RoboMaster视觉组(五)local-distribution汇聚方法
特征工程实战篇
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
电脑系统重装后如何开启Win11实时辅助字幕
MySQL:意向共享锁和意向排它锁 | 死锁 | 锁的优化
【数学建模绘图系列教程】绘图模板总结
JVM学习——1——虚拟机基础概念
ceph创建存储池,映射,删除练习
Query the size of the total points obtained in a certain time period to sort
记录一次腾讯实习投递经历(一)
自动化测试-图片中添加文字注释,添加到allure测试报告中