Course
Database Internals
A practitioner's tour of how databases really store, recover, isolate, and execute data — from pages and B-trees through WAL, MVCC, and query planning.
Reviews
Enrolled members can rate this course.
No reviews yet.
Storage Engines and Data Structures
Pages, buffer pools, B-trees, LSM trees, compaction, and the physical layout decisions that dominate database behavior.
- 01The Storage Engine Mental Model: Pages, Buffers, and FilesUnderstand why databases read pages instead of rows, how buffer pools hide disk latency, and why storage layout shapes every performance symptom.24mOpen
- 02B-Trees: Pages, Fanout, Splits, and Why Indexes AgeLearn how B-tree pages stay balanced, what happens during inserts and splits, why key order matters, and how write-heavy indexes fragment over time.27mOpen
- 03LSM Trees: Memtables, SSTables, Compaction, and Bloom FiltersSee why log-structured merge trees ingest writes quickly, how levels and compaction trade space for read cost, and why deletes are not free.26mOpen
Durability, Concurrency, and Isolation
Write-ahead logging, crash recovery, transactions, MVCC, locking, and the real implementation of isolation levels.
- 01Write-Ahead Logging and Crash RecoveryLearn why databases log intentions before touching data pages, what commit really means, and how redo and undo bring a crashed system back to a consistent state.28mPremium
- 02Transactions, MVCC, and Locking Under Real ConcurrencyUnderstand how row versions, snapshots, undo logs, and locks let transactions coexist — and where contention, deadlocks, and bloat appear.27mPremium
- 03Isolation Levels as Implemented: Anomalies You Can Actually HitMove past textbook names to understand dirty reads, nonrepeatable reads, phantom behavior, write skew, and how engines enforce their guarantees.29mPremium
Query Planning and Execution
How SQL becomes an execution plan, how optimizers estimate cost, and how to read plans when production queries go wrong.
- 01From SQL to an Execution PlanFollow a query through parsing, rewriting, planning, and executor operators so scans, joins, sorts, and aggregates stop feeling mysterious.23mPremium
- 02Cost-Based Planning: Joins, Selectivity, and StatisticsLearn how optimizers compare join orders and access paths using selectivity estimates, histograms, costing constants, and sometimes bad assumptions.28mPremium
- 03Reading Production Query Plans Without GuessingDevelop a repeatable incident workflow: capture plans, compare estimates with reality, inspect buffer and timing data, and fix root causes rather than symptoms.25mPremium