当前位置:网站首页>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 .
边栏推荐
- Regular expressions remove spaces at both ends
- Does the service layer need an interface
- 20210408 longest public prefix
- SSM实战项目-前后分离(简单易懂)
- js真伪数组转换
- Uniapp video video playback is not completed. It is forbidden to drag the progress bar fast forward
- 12 pictures, take you to thoroughly understand ZGC garbage collector!
- Plus SBOM: assembly line BOM pbom
- P1876 turn on the light [getting started]
- Use redis' sorted set to make weekly hot reviews
猜你喜欢

20210518-Cuda

Error: slf4j: class path contains multiple slf4j bindings

Detail throw and throws

Alibaba cloud RDS exception during pool initialization

(10) STM32 - systick tick timer

Julia beginner tutorial 2022

Complete data summary of lapsus$apt organization that stole Microsoft's source code in March 2022

Watermelon book chapter 3 (first & second)

详述try-catch-finally

Play CSDN editor
随机推荐
Watermelon Book + pumpkin book chapter 1-2
(10) STM32 - systick tick timer
SQL question brushing: find out the current salary of all employees
POJ1611_ The Suspects
Watermelon book chapter 3 (first & second)
C program debugging and exception handling (try catch)
Bishi journey
No matching distribution found for flask_ A solution to compat
Top of the tide - reading notes + excerpts + insights
Dominoes staged: the beginning and end of the three arrow capital crash
Time tool class, get the current time, date to string
Photoshop web design tutorial
Openpyxl drawing radar map
Redistemplate cannot get the value according to the key
Recursive method | Fibonacci sequence
Mixin\ plug in \scoped style
Wechat applet session holding
POJ1988_Cube Stacking
P1876 turn on the light [getting started]
When the script runs in the background, it redirects the log from the console to its own named file