What problem does it solve?
SQL performance is often bottlenecked by suboptimal execution plans, missing indexes, and inefficient query patterns across multiple database engines. This Skill provides universal techniques to analyze and optimize queries across MySQL, PostgreSQL, SQL Server, Oracle, and other engines, helping teams improve response times and throughput.
Core Features & Use Cases
- Execution plan analysis and guidance for rewriting queries to leverage indexes and better plan shapes.
- Indexing strategy recommendations, including composite, covering, and partial indexes tailored to common query patterns.
- Pagination and batch operation optimizations to improve throughput on large datasets.
- Cross-database performance monitoring guidance and best practices for measuring improvements and regression risks.
- Use Case: Optimize a slow reporting query by reducing scan cost and improving join performance, then validate with plan changes.
Quick Start
Provide a prioritized optimization plan for a slow SQL query, including indexing recommendations and a rewritten version of the query.