当前位置:网站首页>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
边栏推荐
- liunx禁ping 详解traceroute的不同用法
- Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
- Pytorch weight decay and dropout
- 【Win11 多用户同时登录远程桌面配置方法】
- Splunk configuration 163 mailbox alarm
- pytorch-多层感知机MLP
- 12. (map data) cesium city building map
- splunk配置163邮箱告警
- 【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
- Codeforces Round #804 (Div. 2)
猜你喜欢
随机推荐
redis主从中的Master自动选举之Sentinel哨兵机制
Web API configuration custom route
15 methods in "understand series after reading" teach you to play with strings
[leetcode] wild card matching
splunk配置163邮箱告警
Install esxi 6.0 interactively
Wireless WiFi learning 8-channel transmitting remote control module
pytorch-线性回归
1个插件搞定网页中的广告
【主流Nivida显卡深度学习/强化学习/AI算力汇总】
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
redis的持久化机制原理
Dynamic SQL of ibatis
Acid transaction theory
Complete activity switching according to sliding
Open3d European clustering
无线WIFI学习型8路发射遥控模块
13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
Time tools
简单解决redis cluster中从节点读取不了数据(error) MOVED