๐๏ธ 01112024 2123
๐
ACID
Atomicโ
Atomicity controls guarantee that all the steps in a transaction are completed successfully as a group
If any steps between the transactions fail, all other steps must also fail or be reverted
Term | Description |
---|---|
commit | successful completion of a transaction |
abort | failure of a transaction |
Consistentโ
The transaction preserves the internal consistency of the database
If you execute the transaction all by itself on a database thatโs initially consistent, then when the transaction finishes executing the database is again consistent
Isolatedโ
The transaction executes as if it were running alone, with no other transactions
Term | Description |
---|---|
serializability | effect of running a set of transactions is the same as running them alone |
Usually implemented by locking specific rows in the table
Durableโ
The transactionโs results will not be lost in a failure