SQL Query Optimizer

•
47
•

Optimizes slow database queries by analyzing execution plans, suggesting indexes, and rewriting SQL for peak performance.

SQL Query Optimizer (Flux) is a specialized data engineering skill that identifies and resolves database performance bottlenecks within your codebase. It automatically detects your environment—supporting ORMs like Prisma, Drizzle, and Alembic—to analyze query patterns, interpret EXPLAIN plans, and pinpoint issues such as missing indexes, N+1 patterns, and inefficient joins. By providing actionable query rewrites and specific indexing statements, it helps developers transition from slow full-table scans to high-performance indexed queries with clear before-and-after impact reports.

주요 기능

01Detection of N+1 patterns and implicit type casting issues in ORM code
0247 GitHub stars
03Deep EXPLAIN plan analysis to identify full table scans and nested loops
04Specific recommendations for CREATE INDEX statements and query refactoring
05Automatic database and ORM environment detection (PostgreSQL, MySQL, SQLite, etc.)
06Generation of comprehensive performance reports for complex analysis

사용 사례

01Automating the generation of missing database indexes during the development phase
02Debugging a slow API endpoint by analyzing the underlying database queries
03Performing a performance audit on a legacy repository layer to optimize legacy SQL