当前位置:网站首页>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
边栏推荐
- redis 集群模式原理
- 《看完就懂系列》15个方法教你玩转字符串
- [upsampling method opencv interpolation]
- 11. (map data section) how to download and use OSM data
- 【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
- [yolov3 loss function]
- Want to ask, how to choose a securities firm? Is it safe to open an account online?
- abap查表程序
- Principle and performance analysis of lepton lossless compression
- Intern position selection and simplified career development planning in Internet companies
猜你喜欢
你做自动化测试为什么总是失败?
![[upsampling method opencv interpolation]](/img/6b/5e8f3c2844f0cbbbf03022e0efd5f0.png)
[upsampling method opencv interpolation]

Redis cluster (master-slave) brain crack and solution

Pytorch softmax regression

Matlab struct function (structure array)

【使用TensorRT通过ONNX部署Pytorch项目】

Matlab label2idx function (convert the label matrix into a cell array with linear index)

【yolov5.yaml解析】

July Huaqing learning-1
![[yolov3 loss function]](/img/79/87bcc408758403cf3993acc015381a.png)
[yolov3 loss function]
随机推荐
Pytorch MLP
Uniapp + unicloud + Unipay realize wechat applet payment function
【load dataset】
iTOP-3568开发板NPU使用安装RKNN Toolkit Lite2
Mongodb replica set
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
byte2String、string2Byte
Web API configuration custom route
1. Laravel creation project of PHP
Pytorch softmax regression
redis集群中hash tag 使用
【 YOLOv3中Loss部分计算】
Project summary notes series wstax kt session2 code analysis
Install esxi 6.0 interactively
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
redis主从中的Master自动选举之Sentinel哨兵机制
Matlab imoverlay function (burn binary mask into two-dimensional image)
Reading notes of growth hacker
Splunk configuration 163 mailbox alarm
【主流Nivida显卡深度学习/强化学习/AI算力汇总】