当前位置:网站首页>【MySQL学习笔记32】mvcc
【MySQL学习笔记32】mvcc
2022-07-06 07:13:00 【yqs_281876918】
redo log 重做日志
redo log记录了事务提交时数据页的物理修改,是用来实现事务的持久性
该日志分为两部分组成:重做日志缓冲以及重做日志文件,前者在内存中,后者在磁盘中。当事务提交之后会把所有修改信息存到该日志文件中,用于在刷新脏页(也就是未提交的数据)到磁盘发生错误时恢复数据使用。
undo log 回滚日志

MVCC

隐式字段
| 字段名 | 含义 |
|---|---|
| DB_TRX_ID | 最近修改事务ID,记录插入这条记录或最后一次修改该记录的事务ID |
| DR_ROLL_PTR | 回滚指针,记录这条记录的上一个版本,用于配合undo log,指向上一个版本 |
| DB_ROW_ID | 隐藏主键,如果表结构没有指定主键,将会自动生成隐藏主键 |
版本链

readview


边栏推荐
- UDP攻击是什么意思?UDP攻击防范措施
- 【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
- Oracle数据库11gr2使用tde透明数据加密报错ora28353,如果运行关闭wallet会报错ora28365,运行打开wallet就报错ora28353无法打开wallet
- leetcode6109. 知道秘密的人数(中等,周赛)
- Prefix and array series
- leetcode841. 钥匙和房间(中等)
- 多线程和并发编程(二)
- Cookie技术&Session技术&ServletContext对象
- leetcode1020. 飞地的数量(中等)
- Fast target recognition based on pytorch and fast RCNN
猜你喜欢

变量的命名规则十二条

leetcode704. 二分查找(查找某个元素,简单,不同写法)
![[daily question] 729 My schedule I](/img/6b/a9fef338ac09caafe628023f066e1f.png)
[daily question] 729 My schedule I

Cookie Technology & session Technology & ServletContext object

leetcode704. Binary search (find an element, simple, different writing)

leetcode1020. Number of enclaves (medium)

LeetCode 78:子集

Markdown 中设置图片图注

leetcode841. Keys and rooms (medium)

NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
随机推荐
Hydra common commands
Is software testing outsourcing going or not? Three years' real outsourcing experience tells you
Supervisor usage document
网络安全基础介绍
PCL realizes frame selection and clipping point cloud
Librosa audio processing tutorial
Chrome view page FPS
Multi attribute object detection on rare aircraft data sets: experimental process using yolov5
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
The first Baidu push plug-in of dream weaving fully automatic collection Optimization SEO collection module
OpenGL ES 学习初识(1)
Depth residual network
How to find a medical software testing institution? First flight software evaluation is an expert
LeetCode Algorithm 2181. Merge nodes between zero
Week6 weekly report
巴比特 | 元宇宙每日必读:中国互联网企业涌入元宇宙的群像:“只有各种求生欲,没有前瞻创新的雄心”...
漏了监控:Zabbix对Eureka instance状态监控
mysql如何合并数据
The difference between get and post request types
Go learning --- use reflection to judge whether the value is valid