What problem does it solve?
Many databases suffer from slow queries, poor index design, and misconfigured settings that increase latency, IO, and resource usage; this Skill helps identify root causes and deliver targeted optimizations to restore performance and scalability.
Core Features & Use Cases
- Execution plan analysis: Interpret EXPLAIN/EXPLAIN ANALYZE output to find cardinality errors, expensive scans, and join inefficiencies.
- Indexing & query rewrites: Recommend single-column, multi-column, partial, and expression indexes plus query rewrites or window function optimizations.
- Configuration & partitioning guidance: Suggest PostgreSQL and MySQL tuning parameters, partition strategies, and maintenance steps with validation queries.
- Use Case: Take a slow reporting query on PostgreSQL, analyze pg_stat_statements and EXPLAIN ANALYZE, propose index and query changes, and provide validation steps to confirm improvements.
Quick Start
Ask the database-optimizer to analyze this slow query and its EXPLAIN ANALYZE output, list the bottlenecks, and provide specific SQL index or rewrite suggestions plus validation queries.