当前位置:网站首页>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
边栏推荐
- 你做自动化测试为什么总是失败?
- yolov5目標檢測神經網絡——損失函數計算原理
- Principle of persistence mechanism of redis
- What is digital existence? Digital transformation starts with digital existence
- 查看多台机器所有进程
- Codeworks 5 questions per day (1700 average) - day 5
- [loss functions of L1, L2 and smooth L1]
- View all processes of multiple machines
- Design of music box based on assembly language
- 【PyTorch预训练模型修改、增删特定层】
猜你喜欢

【L1、L2、smooth L1三类损失函数】

pytorch-多层感知机MLP

Redis cluster (master-slave) brain crack and solution

mysql拆分字符串做条件查询

Matlab imoverlay function (burn binary mask into two-dimensional image)

Intern position selection and simplified career development planning in Internet companies

The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix

Yolov5 target detection neural network -- calculation principle of loss function
![[configuration method of win11 multi-user simultaneous login remote desktop]](/img/8f/eab81f089b236c4527a9866b2cfc25.png)
[configuration method of win11 multi-user simultaneous login remote desktop]

Redis master-slave mode
随机推荐
Principle of persistence mechanism of redis
Project summary notes series wstax kt session2 code analysis
Solve readobjectstart: expect {or N, but found n, error found in 1 byte of
Sentinel sentinel mechanism of master automatic election in redis master-slave
JS for循环 循环次数异常
Liunx prohibit Ping explain the different usage of traceroute
Pytorch MLP
iTOP-3568开发板NPU使用安装RKNN Toolkit Lite2
【TFLite, ONNX, CoreML, TensorRT Export】
Application of a class of identities (vandermond convolution and hypergeometric functions)
XML解析
简单解决redis cluster中从节点读取不了数据(error) MOVED
Principle and performance analysis of lepton lossless compression
1. Laravel creation project of PHP
Linux Installation and deployment lamp (apache+mysql+php)
What is digital existence? Digital transformation starts with digital existence
redis 集群模式原理
自动化测试生命周期
7月华清学习-1
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.