TOPICS
#28
Indexes
Trace how an index turns a full-table scan into a few-step lookup, judge when the engine skips it for a sequential scan, and apply the leftmost-prefix and covering-index rules to decide which columns to index.
14 min
#29
EXPLAIN & the Planner
Read an EXPLAIN plan inside-out, decode each node's cost and row estimate, and use EXPLAIN ANALYZE to catch the bad row estimate behind a slow plan.
15 min
#30
Join Algorithms
Choose between nested loop, hash, and merge join by row count, index shape, and sort order, watch why each wins a different region, and predict which one the planner will price cheapest.
14 min
#31
Query Antipatterns
Spot the per-row loop that fires 1 + N queries, see why a leading wildcard or a function-wrapped column abandons an index, and rewrite each so the engine does only the work the result needs.
13 min