当前位置:网站首页>Detailed explanation of MySQL and mvcc and the difference between RC and RR for snapshot reading
Detailed explanation of MySQL and mvcc and the difference between RC and RR for snapshot reading
2022-06-29 21:55:00 【InfoQ】
One 、 What is? MVCC
Read Reading and writing Write to read Write about Lock Two 、 The current reading 、 Read the snapshot
- Three hidden parameters (DB_ROW_ID Hide primary key id、DB_ROLL_PTR rollback pointer 、DB_TRX_ID thing id)
- undo log journal
- read view
3、 ... and 、 Hide fields

3-1、 Hide primary key
3-2、 thing id
3-3、 rollback pointer
Four 、undo log
insert undo logThe database generates when inserting data , Only inCurrent thingsOnly useful when rolling back , So it's useless when the current thing is over , It will be deleted .
update undo logThe database is updating 、 Generated when deleting , Except that the current thing will use , It will also be used when reading snapshots , So you can't delete , Only if a fast read or transaction rollback does not involve the log , The corresponding log will bepurgeThread unified cleaning



5、 ... and 、Read View
N、 Other
N-1、 The snapshot is read in RC and RR The difference between
- RC (read-committed) Read submitted , May lead to It can't be read repeatedly 、 Fantasy reading
- RR (repeatable-read) Repeatable , May lead to It can't be read repeatedly
边栏推荐
- MES系统究竟有何独特之处?
- Flame retardant test of aluminum sheet as/nzs 1530.1 non combustible materials
- Sophon CE community edition goes online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
- About Effect Size
- PostgreSQL Weekly News - 22 juin
- Rsync method of establishing multi directory module
- JD alliance API - universal chain transfer interface - Jingpin library interface - Interface Customization
- leetcode:238. Product of arrays other than itself
- 证券开户选择哪个证券另外想问,现在在线开户安全么?
- Shangsilicon Valley real-time data warehouse project (Alibaba cloud real-time data warehouse)
猜你喜欢

Summer Challenge harmonyos ark development framework arkui streamer button effect

Motianlun "high availability architecture" dry goods document sharing (including 124 Oracle, MySQL and PG materials)

leetcode:370. Interval addition
![[advanced ROS chapter] Lecture 4: duplicate names in ROS (nodes, topics and parameters)](/img/25/85e8c55605f5cc999a8e85f0a05f93.jpg)
[advanced ROS chapter] Lecture 4: duplicate names in ROS (nodes, topics and parameters)


小型图书馆项目总结

How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native vs traditional technology architecture

Recruit | DBA Data Engineer every week with an annual salary of 35+. Dream of Kyushu and bright stars!

As a developer, you need to know about the codeless development platform IVX

每周招聘|DBA数据工程师,年薪35+ ,梦起九州,星河灿烂!
随机推荐
Goahead translation - Active Server Pages
If the evaluation conclusion of waiting insurance is poor, does it mean that waiting insurance has been done in vain?
Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms
R language plot visualization: plot to visualize the normalized histograms of multiple data sets, set different histograms to use different bin sizes, and add edge axis whisker graph rugs at the botto
Automatic reply of wechat bulletin number intelligent reply with Turing robot
什么是 SYN 洪水攻击?如何防护?
硅树脂油漆申请美国标准UL 790 Class A 合适吗?
Deep learning remote sensing data set
状态管理 利用Session限制页面访问 只有通过登录验证SessionLogin.aspx才能访问Session.aspx
PostgreSQL每周新聞—6月22日
[advanced ROS chapter] lesson 2 custom header and source file encapsulation
A. Beat The Odds
Numpy's research imitation 1
不同系统下的文件层级符号小结
Top ten questions for senior Performance Test Engineer
Alibaba keyword search commodity API interface (item_search- commodity search interface by keyword), Alibaba Search API interface
彩涂钢板密封板申请BS 476-3如何备样?
Writing a makefile for a golang project
Reading notes on how to connect the network - LAN on the server side (4)
Detailed explanation of key points in implementing MES system in Enterprises