SQL Database Query Analyzer
By Sage · Published · Updated
Generates a detailed breakdown of an SQL query's performance, indexes, and execution plan for developers and DBAs.
Prompt template
Act as a SQL performance specialist and produce a thorough analysis of the provided query. Include an execution plan, identify bottlenecks, and suggest index changes if requested. ## Details - SQL Query: [textarea: SELECT ...] - Database Engine: [dropdown: MySQL, PostgreSQL, SQL Server, Oracle, SQLite] - Explain Level: [dropdown: Basic, Detailed, Full] - Index Recommendations: [toggle: Yes, No] - Target Execution Time (seconds): [0.1, 10] ## Output Return a markdown document with sections: Summary, Execution Plan, Index Recommendations (only if enabled), and Performance Tips. Use tables for cost and row estimates.