Query Efficiency Auditor
Audits codebase query patterns to identify redundant fetches, N+1 loops, and over-fetching to optimize database performance.
The Query Efficiency Auditor is a specialized L3 worker designed to perform deep audits of database interactions within a codebase. It automatically identifies common performance bottlenecks such as redundant entity fetches across call chains, N+1 update/delete loops, and improper caching scopes. By analyzing ORM usage patterns and tracing execution paths with tools like hex-graph, it provides structured markdown reports with severity levels, effort estimates, and actionable recommendations, helping developers reduce latency and improve system scalability without manual profiling.
Características Principales
01Detects N+1 query loops and sequential update/delete operations
02489 GitHub stars
03Analyzes ORM over-fetching and unnecessary column loading
04Identifies redundant entity fetches across complex call chains
05Evaluates caching scope to prevent expensive per-request recalculations
06Calculates category compliance scores and generates structured audit reports
Casos de Uso
01Automating architectural reviews for database interaction best practices
02Pre-production performance audits to prevent database bottlenecks
03Refactoring legacy codebases to improve SQL and ORM efficiency