SQL Query Optimizer
Optimizes complex SQL queries by identifying bottlenecks, suggesting indexing strategies, and rewriting code for peak performance.
SQL Query Optimizer acts as a Senior Database Administrator within Claude Code to transform slow, inefficient database operations into high-performance queries. It meticulously analyzes execution patterns to identify anti-patterns such as non-sargable predicates, implicit type conversions, and inefficient joins. Beyond simple rewrites, the skill provides specific indexing recommendations—including B-Tree, GIN, and GiST—and offers schema refactoring advice tailored to major engines like PostgreSQL, MySQL, and SQL Server. It is an essential tool for developers needing to reduce database latency and improve application scalability through set-based logic and optimized execution plans.