AIStorageDepot
← Prompt library

Diagnose a Slow Query

Prompt · Database · #sql #performance

Lists likely bottlenecks in a slow query, plus indexes and a tuned rewrite

This [Dialect] query is slow. Diagnose why and propose fixes.

Query:
[Query]

Schema and rough row counts: [Context]

List the likely bottlenecks, the indexes or rewrites that would help most, and a tuned version of the query.

This is one of dozens of free prompts in the AIStorageDepot library. Sign up free to save them, version them, and pull them straight into Claude, Cursor, or VS Code over MCP.