SQL Query Optimization
"SQL Query Optimization" is a ready-made prompt from the Zayenha Prompt library in Programming & Tech, written for gpt-5-5-pro. It has a main prompt to copy into the model, built-in quality guards, and a verification prompt to run in a second window to review the answer. The full text needs the Pro plan; the description is open to all.
Review database schema and queries to verify efficiency, security, and data integrity, with recommendations for indexing and normalisation improvements to achieve optimal performance.
Your current plan: free
Speeding up slow report queries, optimizing e-commerce database performance, diagnosing production timeouts
Built-in quality guards
Never invent APIs, functions, or libraries
Code runs as-is without modification
No TODO comments or stubs
OWASP Top 10 considered in code
Frequently asked questions
How do I use this prompt?
Copy the main prompt and paste it into gpt-5-5-pro or the model you use, replace what is in square brackets with your details, then run the verification prompt in a second window with the answer pasted in, and review it before relying on it.
Is this prompt free?
Its full text requires the Pro plan or higher. Free prompts you can copy at once without an account are on the ready-made Arabic prompts page.
Which model was this prompt written for?
It was written for gpt-5-5-pro and follows how that model works; you can run it on other models too, reviewing the result, since no single wording guarantees the best result on every model.