Prompt Detail

GPT-4 Data Verified on GPT-4o

While optimized for GPT-4, this prompt is compatible with most major AI models.

SQL Query Performance Tuner

Professional GPT-4 AI prompt for SQL Query Performance Tuner. Optimize complex SQL queries for better performance and readability.

gpt4
claude3
gemini

Prompt Health: 100%

Length
Structure
Variables
Est. 126 tokens
# SQL Query Performance Tuner Speed up your database queries by analyzing execution plans and logic. ## The Prompt Act as a Senior Database Administrator. Analyze the following SQL query for a [PostgreSQL/MySQL] database. 1. Explain what the query is doing. 2. Identify potential performance bottlenecks (e.g., N+1 problems, missing indexes, inefficient joins). 3. Rewrite the query for maximum efficiency. 4. Suggest indexes that should be created to support this query. Query: [PASTE SQL HERE]

Private Notes

Insert Into Your AI

Edit the prompt above then feed it directly to your favorite AI model

Clicking opens the AI in a new tab. Content is also copied to clipboard for backup.