awesome-everything RU
↑ Back to the climb

Databases

Execution plans: free-recall review

Crux Free-recall prompts across the execution-plans unit. Answer each from memory first, then reveal the model answer and compare against what the seven lessons taught.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 14 min

Retrieval beats re-reading. For each prompt, reconstruct a full answer from memory before you open the model answer — the effort of recall is what makes the plan-reading discipline stick when you are staring at a slow query at 2 a.m.

Goal

Reconstruct the unit’s spine without looking back: how to read EXPLAIN ANALYZE, why row estimates cascade, how scan and join choice are driven by cost, what extended statistics fix, and the operational playbook for plan stability.

Recall before you leave
  1. 01
    What is the single most diagnostic number in an EXPLAIN ANALYZE plan, and why?
  2. 02
    How does the planner choose among Seq Scan, Index Scan, Bitmap Heap Scan, and Index Only Scan?
  3. 03
    Explain the row-estimate cascade and why it makes Nested Loop catastrophic.
  4. 04
    Why does the planner's independence assumption fail on correlated columns, and what fixes it?
  5. 05
    What is the generic-plan trap on prepared statements, how do you detect it, and how do you fix it?
  6. 06
    Describe the five-layer strategy for keeping plans stable across deploys.
Recap

If you reconstructed each answer from memory, you hold the unit’s spine: read EXPLAIN ANALYZE by comparing estimated to actual rows at every node; scan choice follows selectivity and join choice follows the outer-side estimate; the row-estimate cascade explains why a single bad leaf estimate poisons every decision above it; extended statistics replace the independence assumption for correlated columns; the generic-plan trap produces bimodal latency on skewed prepared statements; and plan stability is an operational discipline of fresh statistics, SSD-tuned cost constants, force_custom_plan, observability, and a plan-diffing deploy procedure.

Continue the climb ↑Execution plans: diagnose and stabilise a slow query
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.