当前位置:网站首页>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.
边栏推荐
猜你喜欢
Crosstalk and Protection
「竞品分析报告」不会写?不知从哪收集数据?请收下这篇竞品指南
JVM垃圾回收机制简介
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:维纳滤波器Wiener Filter,LMS
2分钟,带你走完企业经营分析全流程,更有通用分析框架直接套用
LeetCode题解—15.三数之和
2022R1快开门式压力容器操作考试模拟100题及在线模拟考试
了解CV和RoboMaster视觉组(五)local-distribution汇聚方法
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment
服务端修改Cookie——跨域cookie发送机——通信加密——异或加密
随机推荐
How to resolve the conflict between LAN segment and WAN segment when Honor router (WS831) is used as wireless relay
器件可靠性与温度的关系
『HarmonyOS』Page与AbilitySlice的生命周期
【Pyspark】udf使用入门
提升用户体验,给你的模态弹窗加个小细节
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:自适应滤波器的应用
数据库指标是怎么个意思
761. 特殊的二进制序列(分治)
Device Reliability vs. Temperature
2022年熔化焊接与热切割考试模拟100题及在线模拟考试
360 评估反馈问题的示范案例
整除性质1
单元测试覆盖率怎么算?
Correct use of BaseDexClassLoader
松柏集(浮窗思)
337. Robbery III
遗传力缺失的案例
JVM垃圾回收机制简介
07.1 Supplements to the class
两种K线形态预示今日伦敦银走向