Chapter 4 · Database Systems
Transactions & Concurrency Control
6 topics in 2 parts
Key ideas
| Evaluation Parameter | Standard Relational Pattern | Production Optimization Impact |
|---|---|---|
| Storage Engine Layer | Disk page blocks & buffer pool cache | Minimizes random disk I/O via sequential prefetching |
| Index Utilization | B+ Tree logarithmic search $O(\log N)$ | Avoids full table scans across millions of rows |
| Concurrency & Locks | Row-level shared (S) and exclusive (X) locks | Prevents race conditions while maximizing read throughput |
| Failure Recovery | Write-Ahead Logging (WAL) / Undo-Redo | Guarantees durability and instant crash recovery |
All 6 topics in Transactions & Concurrency Control
Transactions
- ACID Properties of Transactions
- Transaction States
Concurrency
- Recoverable & Cascadeless Schedules
- Conflict Serializability
- Two-Phase Locking (2PL)
- Deadlock Schemes in DBMS