The SQL Query Optimizer skill acts as an automated Senior Database Administrator to transform slow, inefficient database interactions into high-performance code. It analyzes execution plans to pinpoint bottlenecks like non-sargable predicates, implicit type conversions, and costly subqueries. Whether you are working with PostgreSQL, MySQL, or SQL Server, this skill provides actionable rewrites, specific indexing recommendations (including B-Tree, GIN, and GiST), and architectural refactoring advice to move from iterative logic to efficient set-based operations.
主な機能
01Detailed indexing strategies including covering and composite indexes
028 GitHub stars
03Automated detection of SQL anti-patterns and performance leaks
04Database-specific optimizations for PostgreSQL, MySQL, and SQL Server
05Set-theory based query refactoring for better scalability
06Execution plan analysis and complexity comparison (O-notation)
ユースケース
01Migrating legacy SQL queries to modern, performant standards during refactoring
02Designing indexing strategies for large datasets to reduce CPU and I/O load
03Troubleshooting slow API endpoints by optimizing underlying database calls