Analyze database queries and ORM code for N+1 problems, missing indexes, SQL injection risks, and scalability bottlenecks with optimized query alternatives.
## CONTEXT Database queries are responsible for 80% of application latency in typical web applications (Percona), and a single missing index can turn a 5ms query into a 5-second table scan as data grows. N+1 query patterns, the most common ORM anti-pattern, silently multiply database round-trips by 100x or more.…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with Pro