Consistency (database systems)
In database systems, consistency (or correctness) refers to the requirement that any given database transaction must change affected data only in allowed ways.[8] Any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof.[src] This does not guarantee correctness of the transaction in all ways the application programmer might have wanted (that is the responsibility of application-level code) but merely that any programming errors cannot result in the violation of any defined database constraints.[src] In a distributed system, referencing CAP theorem, consistency can also be understood as after a successful write, update or delete of a Record, any read request immediately receives the latest value of the Record.[src]
In database systems, consistency (or correctness) refers to the requirement that any given database transaction must change affected data only in allowed ways.[8] Any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof.[src] This does not guarantee correctness of the transaction in all ways the application programmer might have wanted (that is the responsibility of application-level code) but merely that any programming errors cannot result in the violation of any defined database constraints.[src] In a distributed system, referencing CAP theorem, consistency can also be understood as after a successful write, update or delete of a Record, any read request immediately receives the latest value of the Record.[src] ==As an ACID guarantee== Consistency is one of the four guarantees that define ACID transactions; however, significant ambiguity exists about the nature of this guarantee.[3] It is defined variously as: The guarantee that database constraints are not violated, particularly once a transaction commits.[src] The guarantee that any transactions started in the future necessarily see the effects of other transactions committed in the past.[src] As these various definitions are not mutually exclusive, it is possible to design a system that guarantees "consistency" in every sense of the word, as most relational database management systems in common use today arguably do.[8] ==As a CAP trade-off== The CAP theorem is based on three trade-offs, one of which is "atomic consistency" (shortened to "consistency" for the acronym), about which the authors note, "Discussing atomic consistency is somewhat different than talking about an ACID database, as database consistency refers to transactions, while atomic consistency refers only to a property of a single request/response operation sequence.[3] And it has a different meaning than the Atomic in ACID, as it subsumes the database notions of both Atomic and Consistent." In the CAP theorem, you can only have two of the following three properties: consistency, availability, or partition tolerance.[4] Therefore, consistency may have to be traded off in some database systems.[src] ==See also== Consistency model Referential integrity Eventual consistency ==References==[src]
16 sentences · 16 cited inline · 8 references stored
References
- minet.uni-jena.de . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "minet.uni-jena.de ." minet. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "minet.uni-jena.de ." minet. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA minet. (2026). minet.uni-jena.de . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- web.archive.org . (archived copy) · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "web.archive.org . (archived copy)." web. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "web.archive.org . (archived copy)." web. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA web. (2026). web.archive.org . (archived copy). Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- Mike Chapple. The ACID Model . About . retrieved 2014-07-23 · retrieved 2014-07-22 · rev 1360820615
Cite this reference
MLA "Mike Chapple. The ACID Model . About . retrieved 2014-07-23." Mike Chapple. 2014-07-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "Mike Chapple. The ACID Model . About . retrieved 2014-07-23." Mike Chapple. 2014-07-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA Mike Chapple. (2014). Mike Chapple. The ACID Model . About . retrieved 2014-07-23. Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- ACID properties . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "ACID properties ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "ACID properties ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA encyclopegia.org. (2026). ACID properties . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- Cory Janssen. What is ACID in Databases? - Definition from Techopedia . Techope . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "Cory Janssen. What is ACID in Databases? - Definition from Techopedia . Techope ." Cory Janssen. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "Cory Janssen. What is ACID in Databases? - Definition from Techopedia . Techope ." Cory Janssen. 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA Cory Janssen. (2026). Cory Janssen. What is ACID in Databases? - Definition from Techopedia . Techope . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- ISO/IEC 10026-1:1998 - Information technology -- Open Systems Interconnection -- Distribute . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "ISO/IEC 10026-1:1998 - Information technology -- Open Systems Interconnection -- Distribute ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "ISO/IEC 10026-1:1998 - Information technology -- Open Systems Interconnection -- Distribute ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA encyclopegia.org. (2026). ISO/IEC 10026-1:1998 - Information technology -- Open Systems Interconnection -- Distribute . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Servi . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Servi ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Servi ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA encyclopegia.org. (2026). Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Servi . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
- Transactional Consistency and Automatic Management in an Application Data Cache . · retrieved 2026-06-22 · rev 1360820615
Cite this reference
MLA "Transactional Consistency and Automatic Management in an Application Data Cache ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615. Accessed 01 December 2026.
Chicago "Transactional Consistency and Automatic Management in an Application Data Cache ." 2026-06-22. https://en.wikipedia.org/w/index.php?oldid=1360820615.
APA encyclopegia.org. (2026). Transactional Consistency and Automatic Management in an Application Data Cache . Retrieved December 1, 2026, from https://en.wikipedia.org/w/index.php?oldid=1360820615
Cite this article
MLA
"Consistency (database systems)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/consistency-database-systems. Accessed 01 December 2026.
Chicago
"Consistency (database systems)." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/consistency-database-systems.
APA
encyclopegia.org. (2026). Consistency (database systems). Retrieved December 1, 2026, from https://encyclopegia.org/wiki/consistency-database-systems
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON