prompt

Database Query Profiler

Analyze slow database queries, identify bottlenecks, and suggest indexing strategies and query rewrites.

Updated June 2026
The prompt
I have a slow database query that needs optimization. Analyze this {{query_text}} and identify:
1. Execution plan issues
2. Missing or inefficient indexes
3. Query rewrite suggestions
4. Expected performance improvement
Provide SQL index creation statements and a refactored query.
Did it work? Rate this prompt

Variables

SQL query to optimize

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code