SQL Query Optimizer
Optimize slow SQL queries — analyze execution plans, add missing indexes, rewrite subqueries, and benchmark before/after performance.
More in Data & SQL Prompts
SQL: Rewrite a Slow Query for 10x Performance
Optimise a slow query with a step-by-step EXPLAIN ANALYZE walkthrough.
SQL: Schema Design for a New Feature
Produce a normalised schema, migrations, and seed data for a new product feature...
SQL: Detect N+1 and Suggest Eager Loading Fix
Audit a query log for N+1 issues and produce a fix with ORM-specific eager loadi...
SQL: Safe Zero-Downtime Schema Migration
Plan a schema migration that runs safely against a live production database.