db-query-plan-analyzer
Installation
SKILL.md
db-query-plan-analyzer
Overview
Most API perf regressions resolve to one of:
- A new query running unindexed (sequential scan over a growing table).
- A query joining on the wrong column type (implicit cast prevents index use).
- A sort that doesn't fit in
work_memand spills to disk. - A query plan that started using a nested loop where a hash join would be faster (or vice versa) due to stale stats.
- A query touching N+1 rows because of an ORM N+1 access pattern.