Course
Database Internals & Concepts
How databases actually work beneath the SQL layer: storage engines, indexes, transactions, query planning, replication, and distributed consensus.
Reviews
Enrolled members can rate this course.
No reviews yet.
Storage and Indexing
Pages, write-ahead logs, buffer pools, B-trees, and LSM trees — the machinery that decides how data lives on disk.
- 01Storage Engines: Pages, Buffer Pools, and the Write-Ahead LogThe storage engine's real job is surviving crashes while making disk I/O predictable. Pages, buffer pools, and WALs are the pieces you must understand first.24mOpen
- 02B-Tree Indexes in PracticeB-trees are still the default index because they are predictable. Learn their shape, their costs, and why most indexing mistakes are really selectivity mistakes.26mOpen
- 03LSM Trees and CompactionLog-structured storage engines optimize for writes by turning random mutations into sequential appends, then paying the cost later during compaction.24mOpen
Transactions and Query Execution
Isolation, locking, MVCC, and the planner decisions that turn declarative SQL into real work.
- 01Transactions, Isolation, and MVCCIsolation levels are concurrency contracts, not academic labels. MVCC explains why readers do not block writers — and where anomalies still leak through.27mOpen
- 02Locks, Deadlocks, and Hot-Row ContentionLocks are how databases keep concurrent mutations honest. Deadlocks are not rare curses; they are what happens when two transactions order the same work differently.23mOpen
- 03Query Planning and StatisticsThe planner is a cost model fed by imperfect statistics. When it chooses badly, your job is to inspect the estimate-versus-reality gap before rewriting SQL at random.26mOpen
Distributed Databases
Replication, failover, partitioning, and consensus — where correctness gets expensive.
- 01Replication and Failover Without the Fairy TalesReplication copies changes to other nodes for durability and availability. Failover is easy to automate and hard to make safe — especially after the old primary comes back.25mOpen
- 02Partitioning and ShardingPartitioning divides data inside one database; sharding divides ownership across databases. The hard part is choosing a key that keeps common work local.24mOpen
- 03Consensus Basics: Raft, Quorums, and Leaderless SystemsConsensus lets a cluster agree on one ordered history despite failures. Raft is the mental model most engineers should learn first, with quorums as the underlying arithmetic.27mOpen