Runbook category

Query performance

Almost every "the database is slow" ticket is one query and one plan. These runbooks start from EXPLAIN output rather than from a timer: what the planner chose, what it expected, and what it actually got. The fixes range from an index to a work_mem change to leaving the plan alone because a sequential scan was right all along.