SQL Optimizer

•
248
•

Analyzes SQL performance bottlenecks and provides optimized query rewrites with detailed execution plan interpretations.

The SQL Optimizer skill is a production-grade diagnostic tool designed to eliminate database performance issues by systematically analyzing query structures and EXPLAIN plans. It identifies common anti-patterns like N+1 queries, full table scans, and suboptimal joins while providing actionable index recommendations and engine-specific rewrites. By explaining the rationale behind every change, it helps developers not only fix slow queries but also understand the underlying database mechanics for PostgreSQL, MySQL, and SQLite.

주요 기능

01Interprets EXPLAIN and EXPLAIN ANALYZE output for PostgreSQL, MySQL, and SQLite
02Identifies cost hotspots and discrepancies between estimated and actual row counts
03Provides optimized query rewrites that preserve semantic correctness and improve performance
04Detects and fixes common SQL anti-patterns like N+1 queries and full table scans
05248 GitHub stars
06Generates precise index recommendations based on WHERE, JOIN, and ORDER BY clauses

사용 사례

01Troubleshooting slow-running production queries using database execution plans
02Refactoring inefficient ORM-generated SQL to prevent performance degradation
03Designing high-performance indexing strategies for new table schemas and complex filters