Full-Stack Next.js & PostgreSQL Production Architecture
Generate production-ready Next.js 15 App Router code with Server Components, Prisma models, Zod validation, and TypeScript types.
“Diagnose slow PostgreSQL/MySQL queries, generate optimized indexes, remove sequential scans, and explain execution plans step-by-step.”
This prompt implements an end-to-end framework specifically designed for Database Administration & Backend Engineering. It enforces role authority, step-by-step structural reasoning, and negative constraints to prevent generic, repetitive AI filler.
Include table column names and the database engine (e.g. Postgres 16).
Apply composite index recommendations to your database staging environment.
Query joining 2.4M orders with 500k customers with date range filter taking 1,850ms.
Run this prompt with zero rate limits and maximum intelligence using advanced frontier LLMs.
Covering indexes allow Index-Only Scans without reading the heap table, saving disk I/O.