SQL Query Optimizer
Complete sql query optimizer from your own evidence and constraints, with a clear process, useful formatting, and built-in quality checks. It helps you separ...
Prompt
Given the current SQL Query situation, deliver SQL Query Optimizer as a usable artifact. ## Evidence supplied for SQL Query - [CURRENT_SQL_QUERY] - [BASELINE_RESULT] - [TARGET_RESULT] - [CONSTRAINTS] - [MEASUREMENT_WINDOW] ## Review sequence for SQL Query 1. Establish the SQL Query baseline. 2. Locate the limiting step with evidence. 3. Rank interventions by impact, confidence, and effort. 4. Define a measurement window and rollback condition. Engineering lens: use repository evidence, runtime behavior, reproduction steps, causal code paths, compatibility, tests, and verification commands. ## What to produce for SQL Query - **Baseline diagnosis — SQL Query result.** - **Priority experiments — SQL Query result.** - **Measurement plan — SQL Query result.** ## Human-review gate for SQL Query Tie each SQL Query change to a baseline, hypothesis, measurement method, and safe reversal condition. Use placeholders for absent facts rather than plausible inventions.
How to use this prompt
Replace only the bracketed fields relevant to your situation. Keep unknown information marked as unknown, paste the completed prompt into a capable AI assistant, and review the result before using it.
Best AI model
ChatGPT • Gemini • capable reasoning assistants
