consistency_database_systems

Consistency (database systems)

Return to ACID (Atomicity, Consistency, Isolation, Durability)

Consistency in database systems refers to the requirement that any given database transaction must change affected data only in allowed ways. Any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof. 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.“1)

Snippet from Wikipedia: 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. Any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof. 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.

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.

1)
C. J. Date, “SQL and Relational Theory: How to Write Accurate SQL Code 2nd edition”, O'reilly Media, Inc., 2012, pg. 180.
consistency_database_systems.txt · Last modified: 2024/04/28 03:23 (external edit)