Principles of Data storage Flashcards
What is a transaction on a database
Comprises of a series of small actions.
What does a Database management system (DBMS) do
Ensures that all of the possible concurrent transactions will leave the date in the same state as if each transaction was performed one after another.
What is record locking
Used to lock a record in a table until a transaction is completed. If the transaction fails, the record is unlocked for someone else to access.
What are the four steps in ACID
Atomicity
Consistency
Isolation
Durability
What does ACID do
Ensures all transactions complete successfully, or if they fail, the data is left as it was before.
What is Atomicity in Acid
The classification of transactions as a single task that either passes or fails.
What is Consistency in aCid
Ensures that the data being committed as part of the transaction compiles both with validation rules and referential integrity.
What is Isolation in acId
Ensures that the data is locked whilst a transaction is processing.
What is Durability in aciD
Ensures that once a transaction is completed, it is committed to the database and will stay in the database.