prompt

Database Query Profiling

Analyze slow database queries and suggest indexing, query restructuring, and execution plan improvements.

Updated June 2026
The prompt
I have a slow {{database_type}} query that takes {{execution_time}} seconds on a {{table_size}} row table.

Query:
{{query_code}}

Analyze this query for performance bottlenecks. Suggest:
1. Index candidates
2. Query rewrites
3. Execution plan insights
4. Estimated improvement percentage
Did it work? Rate this prompt

Variables

Database Type
Current Execution Time (seconds)
Number of Rows
SQL Query

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