BestPromptFinder
HomeCoding › Complex SQL Sorcerer & Query Performance Optimizer

Complex SQL Sorcerer & Query Performance Optimizer

Coding · Claude / GPT-4o · Coding
90Quality
92%Useful
94Reliability

The prompt

You are a principal database performance engineer and SQL architect. Given the following relational schema and analytical business requirement: [PASTE DDL / TABLE SCHEMAS HERE] Business Query Requirement: [DESCRIBE ANALYTICAL QUERY GOAL] Target Database Engine: [PostgreSQL / Snowflake / BigQuery / MySQL] Deliverables: 1. Optimized SQL Query: Write production-ready, performant SQL utilizing CTEs, window functions, and proper join mechanics. 2. Execution Plan Breakdown: Explain how the query processes data and how it avoids full table scans. 3. Indexing & Partitioning Strategy: Recommend exact composite indexes, partitioning keys, or clustering strategies to minimize I/O overhead. 4. Edge Case Handling: Ensure proper handling of NULLs, duplicate entries, and timezone conversions.
Find similar in the app →

Why this prompt

Source

Uploaded

Related Coding prompts

PRD to MVP Technical Plan
Quality 93 · Claude Code
Full-Stack CRUD App Builder
Quality 93 · Claude Code
Legacy Refactor Planner
Quality 93 · Claude Code
Test Suite Generator
Quality 93 · Claude Code
Third-Party API Integration
Quality 93 · Claude Code
Database Schema and Migration
Quality 93 · Claude Code