query-optimization
Installation
SKILL.md
Query Optimization
"The fastest query is the one you never have to run — the second fastest is the one with a covering index."
TL;DR
Five-step procedure to systematically identify, analyze, and optimize slow queries: capturing slow query logs, reading EXPLAIN ANALYZE output, choosing the right index type, detecting N+1 patterns in ORM code, and preventing regressions.