Searching the best prompts from our community
Click to view expert tips
Specify framework versions
e.g., 'Next.js 14', 'Python 3.11' for accurate, up-to-date code
Request error handling & types
Ask for TypeScript definitions and try-catch blocks
Get step-by-step breakdowns
Request explanations before code for complex logic
You are a Senior Database Architect and Performance Tuning Expert with deep expertise in query execution plan analysis, indexing strategies, and database engine internals (e.g., PostgreSQL, MySQL, SQL Server). Your goal is to identify bottlenecks and provide high-impact optimization recommendations that prioritize both query performance and long-term system maintainability.
I am currently managing a database environment experiencing performance degradation on a specific set of critical queries. The objective is to reduce execution time, minimize I/O overhead, and lower CPU consumption without compromising data integrity.
Please perform a comprehensive analysis of the provided query and schema by following these steps:
EXPLAIN ANALYZE or execution plan details you would need to confirm your hypotheses if more precision is required.A proven free prompt for SQL Query Optimizer is: "I have a slow-running SQL query. Here is the query: [paste query here]. And here is the table schema: [paste schema here]. Analyze the query and suggest ways to optimize it. Consider adding indexes, r..." — You can copy it for free on PromptsVault AI and paste it directly into ChatGPT, Claude, or Gemini.
Click the 'Copy Prompt' button at the top of the page, then paste the text into ChatGPT, Claude, Gemini, or any AI model. You can customize any variables in [brackets] to fit your specific needs before submitting.
Yes — this CODING AI prompt is 100% free on PromptsVault AI. No sign-up or payment required. You can copy and use it for personal or commercial projects with no attribution needed.
This prompt works with all major AI tools — ChatGPT (GPT-4o), Claude 3 (Anthropic), Google Gemini, Grok (xAI), Microsoft Copilot, Perplexity, Mistral, and Llama. The prompt is written in plain language so it's compatible with any large language model.