Query Efficiency Auditor
Audits database query patterns to detect and resolve performance bottlenecks like N+1 loops, redundant fetches, and over-fetching.
The Query Efficiency Auditor is a specialized L3 worker designed to analyze codebase query patterns for redundancy and inefficiency. It identifies common database anti-patterns—such as repetitive entity fetches within call chains, sequential update loops, and excessive field loading—providing structured reports with severity levels and actionable recommendations. This skill is essential for maintaining high-performance database interactions and reducing latency in production environments, particularly within complex ORM-based applications.
主要功能
01Generates structured reports with compliance scores and refactoring effort estimates
02Detects redundant entity fetches across complex function call chains
03Identifies N-UPDATE and N-DELETE loops that should be batch operations
04Analyzes caching scopes to ensure expensive queries aren't re-run unnecessarily
05Flags over-fetching where full models are loaded instead of required fields
06147 GitHub stars
使用场景
01Optimizing API response times by reducing unnecessary database round-trips
02Automated code reviews for database performance and ORM best practices
03Preparing for production scaling by identifying non-performant bulk data operations