Query Optimization

Find and fix slow Postgres queries — rank by pg_stat_statements, diagnose with EXPLAIN (ANALYZE, BUFFERS), kill N+1 at the ORM layer, add the right index. Use when an endpoint is slow, DB CPU is high, or before scaling traffic. Not for schema/index design from scratch (use schema-design) or result-level caching (use caching-strategy).

JayKim88 Updated

File contents

JayKim88/claude-ai-engineering/tree/main/plugins/backend-toolkit/skills/query-optimization commit 36c2d1f00b

Frequently asked questions

npx skillmds@latest add jaykim88/query-optimization