Back to Library
Automation

Optimize Query

S
By SkilloAI
Added 2026-03-27

Optimize slow SQL or NoSQL database queries.

#Workflow#Automation

Full Prompt

View Source
1. Examine the slow query and its execution context (e.g., ORM usage).
2. Identify missing indexes or inefficient JOINs/N+1 problems.
3. Rewrite the query for raw performance.
4. Explain how the database engine interprets the optimization.