What problem does it solve?
This Skill helps you diagnose slow database queries and fix them with better query structure, indexing, and schema design so performance matches your targets.
Core Features & Use Cases
- Query Optimization Workflow: Analyze your query and execution plan, rewrite using set-based patterns, and validate improvements with EXPLAIN ANALYZE.
- Schema & Index Design: Design or adjust schemas and create the right (including covering) indexes to reduce scans and improve join/aggregation performance.
- Performance Debugging & Verification: Interpret plan outputs (e.g., sequential scans, row estimate mismatches, buffer behavior) and iterate until performance goals are met.
Use cases: You have a query that’s slow, you need to design a schema for reliable constraints and keys, or you want to tune complex constructs like joins, CTEs, window functions, recursive queries, and dialect-specific SQL.
Quick Start
Tell the SQL Pro skill to optimize this query by analyzing its execution plan, recommending specific rewrites and indexes, and verifying the improvement with EXPLAIN ANALYZE.