- Learning PostgreSQL 10(Second Edition)
- Salahaldin Juba Andrey Volkov
- 259字
- 2021-07-02 22:42:02
ACID properties
In a relational database, a single logical operation is called a transaction. The technical translation of a transaction is a set of database operations, which are create, read, update, and delete (CRUD). An example of explaining a transaction is budget assignment to several projects in the company assuming we have a fixed amount of money. If we increase a certain project budget, we need to deduct this amount of increase from another project. The ACID properties in this context could be described as follows:
- Atomicity: All or nothing, which means that if a part of a transaction fails, then the transaction fails as a whole.
- Consistency: Any transaction gets the database from one valid state to another valid state. Database consistency is governed normally by data constraints and the relation between data and any combination thereof. For example, imagine if one would like to completely purge his account on a shopping service. In order to purge his account, his account details, such as a list of addresses, will also need to be purged. This is governed by foreign key constraints, which will be explained in detail in the coming chapter.
- Isolation: Concurrent execution of transactions results in a system state that would be obtained if the transactions were executed serially.
- Durability: The transactions that are committed--that is, executed successfully--are persistent even with power loss or some server crashes. In PostgreSQL, this is done normally by a technique called write-ahead log (WAL). Other database refers to this as a transaction log such as in Oracle.
推薦閱讀
- Canvas LMS Course Design
- Linux Mint System Administrator’s Beginner's Guide
- 傳感器技術(shù)實(shí)驗(yàn)教程
- 錯(cuò)覺(jué):AI 如何通過(guò)數(shù)據(jù)挖掘誤導(dǎo)我們
- Mastering Salesforce CRM Administration
- UTM(統(tǒng)一威脅管理)技術(shù)概論
- 大數(shù)據(jù)驅(qū)動(dòng)的設(shè)備健康預(yù)測(cè)及維護(hù)決策優(yōu)化
- 空間站多臂機(jī)器人運(yùn)動(dòng)控制研究
- 重估:人工智能與賦能社會(huì)
- Effective Business Intelligence with QuickSight
- Machine Learning in Java
- Generative Adversarial Networks Projects
- Practical Network Automation
- 智能小車機(jī)器人制作大全(第2版)
- 工廠電氣控制設(shè)備