Storage Engines and Transaction Processing
-
Slotted Pages and Stable Tuple Locations
Store variable-sized records behind slots so compaction changes their byte offsets without changing every reference.
-
Buffer Pools, Pins, and Dirty Pages
Manage cached database pages with explicit in-use counts and distinguish choosing an eviction victim from making it recoverable.
-
Write-Ahead Logging and Durability Order
Protect database changes by flushing enough log before a data page or a successful commit can be considered durable.
-
Log Sequence Numbers and Idempotent Redo
Track the latest applicable log record on a page and use ordered positions to skip changes already reflected in durable data.
-
Database Checkpoints and Recovery Start Positions
Record enough active transaction and page state to narrow crash recovery without requiring all work to stop together.
-
Redo, Undo, and Restartable Recovery
Explain why a database may replay changes and then reverse unfinished operations, and record reversal progress for another restart.
-
Log-Structured Merge Trees and Compaction
Follow updates from an in-memory structure to sorted files and account for why merging versions can amplify writes.
-
Sorted Table Block Indexes and Negative Lookups
Use sparse separator keys to find a block in an immutable run and avoid reading data for many absent keys.
-
Secondary Indexes and Versioned Table Updates
Maintain an alternate key from the same logical update and ensure stale index information cannot cause visible duplicate or missing rows.
-
Database Latches and Transaction Locks
Separate short protection of an in-memory structure from the longer logical protection an isolation protocol can require.
-
Transaction Anomalies and Isolation Contracts
Translate an isolation claim into allowed histories and distinguish repeated-read changes from invalid combined updates.
-
Conflict Serializability and Precedence Graphs
Build ordering edges from conflicting accesses and use a graph cycle to certify that no conflict-equivalent serial order exists.
-
Two-Phase Locking and Serial Order
Separate a transaction’s growing and shrinking lock phases and use its last acquisition to explain conflict serializability.
-
Optimistic Concurrency Control and Validation
Allow speculative reads and private updates, then validate what changed before making the transaction’s writes visible.
-
Snapshot Isolation and Write Skew
Follow a transaction’s stable snapshot and explain how two disjoint writes can combine into an invalid result.
-
Reclaiming Old Database Versions
Keep the version each active snapshot can still need and account for the memory effects of long-running readers.
-
The Transactional Outbox and Delivery Retries
Record an outgoing event with the data change it represents and handle duplication between sending and marking the event delivered.
-
Group Commit and Flush Batching
Share an expensive log flush across several transactions while acknowledging each only after its required position is durable.
-
Partition Pruning from Query Predicates
Prove which partitions cannot contain matching rows and see why a transformed predicate can be harder for an optimizer to use.
-
Shard Keys, Scatter–Gather, and Local Joins
Connect a query’s predicates to placement and estimate how missing shard information creates fan-out.