Database Query Performance DebuggerPREMIUM

Debug and optimize slow database queries

6/11/2026
Prompt
Help me debug and optimize a slow database query.

**Database system:** {{DATABASE}}
**Slow query:**
```sql
{{QUERY}}
```

**Query execution plan/EXPLAIN output:**
```
{{EXPLAIN_OUTPUT}}
```

**Table schemas involved:**
```sql
{{SCHEMAS}}
```

**Current execution time:** {{CURRENT_TIME}}
**Expected/target execution…

Premium Prompt

Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro
Variables (5)

Replace these placeholders with your own content before using the prompt.

[{DATABASE][{QUERY][{EXPLAIN_OUTPUT][{SCHEMAS][{CURRENT_TIME]

Command Palette

Search for a command to run...