Turn a single slow SQL query and its execution plan into a ranked, evidence-backed optimization plan with concrete rewrites and index proposals.
## CONTEXT I am operating a production database in 2026 where a specific SQL query has become a latency or cost problem. I will paste the query, its EXPLAIN/EXPLAIN ANALYZE output (or the equivalent execution plan from my engine), the relevant table definitions, row counts, and current indexes. Modern engines…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with Pro