当前位置:网站首页>Four characteristics of transactions (acid):
Four characteristics of transactions (acid):
2022-07-27 12:39:00 【Rippling rippling】
One 、 Atomicity (Atomicity)
In chemistry, atoms refer to basic particles that cannot be separated again , Atomicity in database emphasizes that transactions are an indivisible whole , After the transaction starts, all operations are either successful , All or nothing , It's impossible to stop in the middle . If there is an error during the execution of the transaction, it will be rolled back to the state before the start of the transaction , All operations will not have any impact on the database as if they did not happen .
Two 、 Uniformity (Consistency)
Transactions must transform the database from one consistent state to another , That is, a transaction must be in a consistent state before and after execution . Take money transfer , Suppose the user A And the user B The sum of the two is 5000, So no matter A and B How to transfer money between banks , Transfer several times , After the transaction ends, the sum of the money of the two users should still be 5000, This is the consistency of transactions .
3、 ... and 、 Isolation, (Isolation)
When multiple users access the database concurrently , For example, when operating the same table , A transaction opened by a database for each user , It cannot be interfered by the operation of other transactions , Multiple concurrent transactions should be isolated from each other , such as A Withdrawing money from a bank card , stay A Before the withdrawal process is over ,B You can't transfer money to this card .
Four 、 persistence (Durability)
Once a transaction is committed , Then all updates to the database will be saved to the database , Cannot be rolled back .
边栏推荐
- Go Beginner (5)
- 事务四大特性(ACID):
- Top of the tide - reading notes + excerpts + insights
- Error: slf4j: class path contains multiple slf4j bindings
- Keil mdk5.37 and above can add AC5 (armcc) compiler by themselves
- Data Lake (20): Flink is compatible with iceberg, which is currently insufficient, and iceberg is compared with Hudi
- II. Analysis of the execution process of make menuconfig
- Enjoy the luxury meta universe louis:the game, and participate in the NFT series digital collection white roll activity | tutorial
- Unity 2D game tutorial
- An overview of kernel compilation system
猜你喜欢

初学者入门:使用WordPress搭建一个专属自己的博客

「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader

Watermelon Book + pumpkin book chapter 1-2

Solution: the idea project does not display a tree view

JVM memory model

Watermelon book chapter 3 (first & second)

Advance in the flutter project_ image_ Picker component usage

隔离级别

Top 10 international NFT exchanges

Wechat applet session holding
随机推荐
正则表达式去除两端空格
5V升压9V芯片
Go Beginner (4)
Will causal learning open the next generation of AI? Chapter 9 Yunji datacanvas officially released the open source project of ylarn causal learning
隔离级别
Complete data summary of lapsus$apt organization that stole Microsoft's source code in March 2022
记忆中的香河肉饼
Set接口
20210408 longest public prefix
I/o instance operation
Recursive method | Fibonacci sequence
Vi. analysis of makefile.build
Photoshop web design tutorial
redis分布式在线安装
2021-3-17-byte-hu Pai
Julia beginner tutorial 2022
[database data recovery] a data recovery case in which the disk partition where the SQL Server database is located is insufficient and an error is reported
How to ask questions on the road for the first time - necessary skills for self-study (with live playback)
Configuration files in MySQL
(10) STM32 - systick tick timer