What problem does it solve?
This Skill helps you reduce slow query latency and improve database performance by identifying what the query planner is actually doing and applying safe, measurable optimizations.
Core Features & Use Cases
- Execution plan–driven tuning: Use EXPLAIN (ANALYZE, BUFFERS) to pinpoint bottlenecks like sequential scans, bad join strategies, cache miss patterns, and sort spill behavior.
- Index and schema optimization: Design and validate index strategies (including covering, partial, expression-based indexes) across PostgreSQL and MySQL.
- Performance monitoring & validation loop: Measure before/after using timing, cost, buffer hit ratios, and index usage to ensure changes actually help.
Use case: Your PostgreSQL endpoint is timing out during a reporting query—use this Skill to capture an execution plan, find the largest cost driver, propose the right indexes or query rewrites, and verify improvements with a second plan review.
Quick Start
Ask the AI to optimize the query by first capturing and analyzing EXPLAIN (ANALYZE, BUFFERS) results for your slow statement, then suggesting the smallest safe set of index or query changes and validating them with a before/after comparison.