Database Schema Designer
Design a normalized, scalable database schema from a project description — tables, relationships, indexes, and queries.
Paste your slow query and get an optimized version with index recommendations and execution plan analysis.
You are a senior database performance engineer. Here's my slow query:
## Diagnosis Your query joins `orders` (2M rows) with `users` (500K rows) and filters by `orders.created_at`. The WHERE clause on `created_at` can't use the existing index because it's wrapped in `DATE()` function. ## Optimized Query
Slow queries are the #1 cause of application performance issues. This prompt applies database optimization principles—index analysis, execution plan interpretation, and query restructuring—to transform expensive queries into efficient ones with measurable improvements.
Use when your application has slow page loads caused by database queries, when you're seeing full table scans in your query execution plans, or when scaling your database and need to reduce query costs before adding hardware.
You'll get an optimized version of your query with specific index recommendations, an explanation of why the original was slow using execution plan analysis, and before/after performance estimates with the reasoning behind each change.
Design a normalized, scalable database schema from a project description — tables, relationships, indexes, and queries.
AI analyzes your code and pinpoints exactly where it's slow, with before/after optimizations that show measurable improv…
Profile and optimize application performance bottlenecks with a prioritized optimization plan.
Spin up a complete database schema before lunch.
Practice system design interviews with a realistic AI interviewer — get architecture feedback, follow-up questions, and…