Databases

Transactions, isolation levels, indexing, and the trade-offs that shape every query.

01
Isolation Levels
How much of another transaction's mess can you see?
L218 MIN
02
MVCC
Readers never block writers, and old versions never die on their own
L318 MIN
03
B+ TREE
The index behind almost every relational database
L215 MIN
04
LSM TREE
Turn random writes into sequential ones, and keep your deletes deleted
L216 MIN
05
Query Planning
The optimizer finds the cheapest road to the same answer
L215 MIN
06
INDEXES & SELECTIVITY
The index that makes your query slower
L215 MIN
07
SHARDING & REBALANCING
Adding one node should not move every key
L215 MIN
08
DEADLOCKS IN THE DATABASE
Two UPDATEs, opposite order, and the detector picks a victim
L215 MIN
09
CAPSTONE: THE SLOW QUERY
Everything in this path, in one 4-second SELECT
L320 MIN