当前位置:网站首页>Acid transaction theory
Acid transaction theory
2022-07-05 12:07:00 【Zhan sir (open source byte)】
What is? ACID
A transaction has four basic characteristics , That's what we often say (ACID):
- Atomicity( Atomicity ): A business is an indivisible whole , All operations within the transaction are either successful , Or it's a total failure .
- Consistency( Uniformity ): Before and after implementation , Data from one state to another must be consistent (A towards B Transfer accounts , Cannot appear A Buckle the money ,B Has received ).
- Isolation( Isolation, ): Multiple concurrent transactions are isolated from each other , Don't interfere with each other .
- Durability( persistence ): After the transaction completes , Changes to the database are permanent , Cannot be rolled back .
ACID By what guarantee ?
With MySQL For example :
A Atomicity from undo log Log guarantees , It records the log information that needs to be rolled back , When the transaction is rolled back, undo the successfully executed sql
C Uniformity It is generally guaranteed by the code level
I Isolation, from MVCC To guarantee
D persistence By memory +redo log To guarantee ,mysql Modify data both in memory and redo log Record this operation , The transaction is committed through redo log Brush set , When it goes down, you can start from redo log recovery
If you reprint , Please indicate the source : Open source byte https://sourcebyte.cn/article/178.html
边栏推荐
- byte2String、string2Byte
- Seven ways to achieve vertical centering
- Intern position selection and simplified career development planning in Internet companies
- Open3d mesh (surface) coloring
- Web API configuration custom route
- 【PyTorch预训练模型修改、增删特定层】
- Solve readobjectstart: expect {or N, but found n, error found in 1 byte of
- How to make your products as expensive as possible
- Which domestic cloud management platform manufacturer is good in 2022? Why?
- 1.php的laravel创建项目
猜你喜欢

12.(地图数据篇)cesium城市建筑物贴图
![[yolov5.yaml parsing]](/img/ae/934f69206190848ec3da10edbeb59a.png)
[yolov5.yaml parsing]

16 channel water lamp experiment based on Proteus (assembly language)
你做自动化测试为什么总是失败?

XML解析

Intern position selection and simplified career development planning in Internet companies

pytorch-权重衰退(weight decay)和丢弃法(dropout)

redis主从中的Master自动选举之Sentinel哨兵机制

Simply solve the problem that the node in the redis cluster cannot read data (error) moved

《增长黑客》阅读笔记
随机推荐
Open3D 欧式聚类
Vscode shortcut key
7月华清学习-1
12.(地图数据篇)cesium城市建筑物贴图
redis主从模式
Halcon template matching actual code (I)
Troubleshooting of high memory usage of redis in a production environment
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
一类恒等式的应用(范德蒙德卷积与超几何函数)
MVVM framework part I lifecycle
无线WIFI学习型8路发射遥控模块
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
ACID事务理论
Project summary notes series wstax kt session2 code analysis
Error modulenotfounderror: no module named 'cv2 aruco‘
Open3d mesh (surface) coloring
Matlab superpixels function (2D super pixel over segmentation of image)
Codeforces Round #804 (Div. 2)
redis主从中的Master自动选举之Sentinel哨兵机制
1.php的laravel创建项目