What problem does it solve?
Databases suffer from slow queries, inefficient schemas, N+1 patterns, and fragile migrations that cause downtime or resource spikes; this Skill diagnoses and eliminates those performance bottlenecks so systems remain reliable under load.
Core Features & Use Cases
- Schema & Index Design: Recommend normalization/denormalization trade-offs, B-tree, GiST, GIN, partial and composite indexes for common query patterns.
- Query Plan Diagnosis: Interpret EXPLAIN ANALYZE output, detect sequential scans, bad row estimates, and provide rewritten queries or plan-friendly hints.
- Operational Patterns: Advise on connection pooling (PgBouncer, Supabase pooler), safe reversible migrations, and strategies for serverless or PlanetScale environments.
- Use Case: Turn a slow feed or join-heavy endpoint into a performant query by adding targeted indexes, avoiding N+1s, and proposing safe migration steps.
Quick Start
Analyze this slow PostgreSQL query and schema and provide EXPLAIN ANALYZE-driven index recommendations, a rewritten query, and safe migration steps.