Skip to content

Progressive curriculum

Level Lab Primary evidence
1 Baseline Timing, rows, loops, buffers
2 Index access paths Selectivity and heap access
3 Composite indexes Prefix, equality/range/order
4 Join optimization Join algorithm and row multiplication
5 Cardinality Estimates, skew, extended statistics
6 Query rewrites Equivalent results, different work
7 Sort and aggregate Memory and temporary I/O
8 Pagination Rows discarded as offset grows
9 Partitioning Pruning and maintenance trade-offs
10 Incidents Database and application signals
11 Concurrency Execution versus lock wait
12 Maintenance Dead tuples, vacuum, bloat, statistics
13 Advanced Parallelism, JIT, WAL, checkpoints, caching
14 Other engines Storage/execution model changes the answer
Final Incident simulation End-to-end diagnosis and rollout judgment

Every lab follows: Observe → Hypothesize → Measure → Explain → Change → Measure again → Compare → Trade-off.

Each module directory is intentionally split into bad_queries.sql, experiments.sql, indexes.sql, and solutions.sql. Follow the training contract: establish evidence first, run experiments after stating a hypothesis, and inspect solutions only after recording a diagnosis.

Start with Lab 01 — Establish the Baseline, use the operations guide during every investigation, and finish with the production simulation.