4.6 Data Transaction Flashcards
Referential Integrity
The process of ensuring that data is consistent
EDI
Computer to computer exchange of documents
What sort of things does EDI manage?
Purchase Orders, invoices and shipping documents§
Transaction
A single operation executed on data
ACID
A set of properties to ensure that the integrity of the database is maintained under all circumstances
Atomicity
Ensures transactions must be processed or cannot happen at all
Consistency
A transaction must maintain the referential integrity rules between linked tables
Isolation
Simultaneous executions of transactions should lead to the same results as if they were executed one after the other
Durability
Once a transaction has been executed it will remain so regardless of circumstances surrounding it, such as in the event of a power cut
Record Locking
The process of preventing simultaneous access to records in a database
Benefits of record locking
To prevent inconsistencies or a loss of updates
Serialisation
Ensures that transactions do not overlap in time and therefore cannot interfere with each other or lead to updates being lost
Timestamp ordering
Every object in the database has a read timestamp, which is updated whenever an object is read or written
Commitment ordering
Ensures no transactions are lost if two clients simultaneously try to update a record