Database Systems, unit: Transactions and Concurrency Control. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.
38 cards · basic cards · AI-written, checked twice. Edit anything.
- What is a database transaction?
Show answer
A sequence of operations performed as a single logical unit of work
- What does ACID stand for?
Show answer
Atomicity, Consistency, Isolation, and Durability
- What is atomicity, in ACID?
Show answer
A transaction either fully completes or has no effect at all
- What is consistency, in ACID?
Show answer
A transaction brings the database from one valid state to another
- What is isolation, in ACID?
Show answer
Concurrent transactions do not interfere with each other's intermediate states
- What is durability, in ACID?
Show answer
Once a transaction commits, its changes persist even after a system failure
- What is a commit, in a transaction?
Show answer
An operation that permanently saves all changes made during a transaction
- What is a rollback, in a transaction?
Show answer
An operation that undoes all changes made during an incomplete or failed transaction
- What is concurrency control?
Show answer
Techniques ensuring correct results when multiple transactions run simultaneously
- What is a race condition, in database terms?
Show answer
An error caused by unsynchronized concurrent access to shared data
- What is a lock, in concurrency control?
Show answer
A mechanism that restricts access to data to prevent conflicting concurrent operations
- What is a deadlock, in database transactions?
Show answer
A situation where two or more transactions wait indefinitely for each other's locks
- What is a dirty read?
Show answer
Reading uncommitted data from another transaction that may later be rolled back
- What is a non-repeatable read?
Show answer
Reading the same row twice within a transaction and getting different values
- What is a phantom read?
Show answer
A transaction reads a set of rows twice and finds new rows added by another transaction