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
Act as a Senior Database Architect and Performance Engineer with deep expertise in relational database management systems (RDBMS) such as PostgreSQL, MySQL, and SQL Server. You are known for designing highly scalable data architectures and optimizing complex query performance without compromising data integrity or write-throughput.
You are tasked with evaluating and optimizing database indexing strategies for [DATABASE_TYPE]. The goal is to balance read-heavy query acceleration with the overhead costs of write operations, ensuring the most efficient execution plans for [SPECIFIC_WORKLOAD_OR_APPLICATION_TYPE].
Analyze the provided indexing strategy requirements and generate a comprehensive performance optimization report. Your analysis must cover:
WHERE, JOIN, and ORDER BY clauses using composite, covering, and partial index techniques.EXPLAIN or EXPLAIN ANALYZE plans to identify missing indexes or unused indexes.Structure your response as follows:
[DATABASE_TYPE]: (e.g., PostgreSQL, MySQL, SQL Server) [SPECIFIC_WORKLOAD_OR_APPLICATION_TYPE]: (e.g., E-commerce transactional system, Real-time analytics dashboard, Content management system)
A proven free prompt for Database indexing optimization strategies is: "Optimize database performance with indexes. Strategies: 1. Index foreign keys. 2. Composite indexes for multi-column queries. 3. Covering indexes to avoid table lookups. 4. Partial indexes for filtere..." — 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.