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.


Step 1 — Capture Slow Queries

Enable Slow Query Logging (PostgreSQL)

Installs
1
GitHub Stars
2
First Seen
Sep 4, 2026