Why Your App Gets Slower With Every New User
AI-built apps slow down as data grows because queries read more rows than they need. The four causes, and the index, LIMIT and join that fix them.
Migrations without data loss, indexes, N+1 queries, idempotency and the database habits that keep real users' data safe.
AI-built apps slow down as data grows because queries read more rows than they need. The four causes, and the index, LIMIT and join that fix them.
A background job is work your app finishes after it has already answered the user. What to move out of the request and how the queue pattern works.
How to export a Bolt project and run it yourself, plus what stays behind: database rows, secrets and server function deploys. Includes a leak test.
An index lets the database jump to rows instead of reading every one. How to see a missing index, which columns need one, and a test that fails without it.
A migration is a saved SQL file that changes your database. How to change a live table without losing or inventing data, with a test that catches both.
An N+1 query asks the database for a list, then again for every row on it. How to spot it in your browser, fix it in one query, and dodge three traps.
Count queries instead of timing them. A two-test setup that fails when an AI rewrite brings back an N+1 loop, or quietly drops rows while fixing it.
Your Supabase publishable key is public by design, so row level security decides what it can touch. What RLS is, a first policy, and how to prove it.
Supabase ships a live API over your public schema, and new tables often start reachable. The two-minute check, the fix, and a test that keeps it fixed.
A pgTAP suite that fails when strangers can read or write your Supabase tables. Run it before launch, and after every policy change.
Stuck with a vibe-coded app? I'll fix it.
Email me