Storage Engines & Databases

How a database actually stores, finds, isolates and replicates your rows, and the ways each step goes wrong.

11 LESSONS~180 MIN
START WITH B+ TREE ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 B+ TREE The index behind almost every relational database L215 MIN
  2. 02 LSM TREE Turn random writes into sequential ones, and keep your deletes deleted L216 MIN
  3. 03 JOURNALING Write the plan down before you touch the disk L214 MIN
  4. 04 MVCC Readers never block writers, and old versions never die on their own L318 MIN
  5. 05 Isolation Levels How much of another transaction's mess can you see? L218 MIN
  6. 06 Query Planning The optimizer finds the cheapest road to the same answer L215 MIN
  7. 07 Replication Lag You wrote it, but the replica hasn't heard yet L214 MIN
  8. 08 INDEXES & SELECTIVITY The index that makes your query slower L215 MIN
  9. 09 SHARDING & REBALANCING Adding one node should not move every key L215 MIN
  10. 10 DEADLOCKS IN THE DATABASE Two UPDATEs, opposite order, and the detector picks a victim L215 MIN
  11. 11 CAPSTONE: THE SLOW QUERY Everything in this path, in one 4-second SELECT L320 MIN
COMING TO THIS PATH