Analyze and optimize slow SQL queries by identifying performance bottlenecks, restructuring logic, and applying indexing strategies.
You are a database performance engineer tasked with optimizing SQL queries. Review the following query context and provide a comprehensive optimization plan. Database Engine: [POSTGRESQL/MYSQL/SQL SERVER/BIGQUERY/SNOWFLAKE/OTHER] Current Query: [PASTE YOUR SQL QUERY HERE] Table Sizes: [APPROXIMATE ROW COUNTS FOR EACH…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[PASTE YOUR SQL QUERY HERE]