02 · Performance · From How to Scale Your Vibe-Coded SaaS

Why is my vibe-coded app slow, and what should I fix first?

By Carl Saguinsin · Fractional CTO & Product EngineerUpdated 18 November 2026

A vibe-coded app is almost always slow for one of three reasons: a database query that runs repeatedly or without an index, a page that loads far more data or script than it needs, or a slow task that runs inside the user's request instead of in the background. Do not optimise from a screenshot or a single Lighthouse score. Trace one real customer journey, find where the seconds actually go, and change one thing at a time.

Measure the path customers use, including real-user experience where you have it. Look at browser loading and interaction, API latency, database queries, and time spent waiting on outside services. Compare normal and peak periods. A load test belongs in an isolated environment with a realistic workload and agreed limits, never in production.

Why AI-built apps are slow

  • Queries in loops. Generated code fetches a list, then fetches each item's details one at a time. Ten rows is fine. A thousand rows is a ten-second page.
  • No indexes. The schema was created to make the feature work, not to make the query fast, and nobody has looked at the query plan.
  • Everything is synchronous. Report generation, email sending, and AI calls run inside the request, so the user waits for all of them.
  • Oversized payloads. The API returns every column of every related record because that was the easiest thing to generate.

Pass one: choose a journey and baseline it

Pick one journey, such as opening the dashboard, saving a project, or generating a report. Record traffic, error rate, and a useful latency percentile such as p95 for the API. For the web experience, look at field Core Web Vitals where you have them. Write the baseline down before you change anything, or you will never know whether you helped.

Pass two: find the constraint

Inspect traces and slow-query evidence. Check for missing indexes, repeated queries, large payloads, unnecessary client-side work, and expensive synchronous tasks. The constraint is usually one thing, and it is rarely the thing the founder guessed.

Pass three: change one thing and compare

Set an expected improvement before editing. Re-measure the same journey under the same conditions and watch for worse cost, correctness, or error rate. A change that makes the page faster and the bill larger needs a second look.

Evidence to save

  • The baseline and the test conditions.
  • Before and after results.
  • The cost change.
  • The reason the change matters to users, in one sentence.

How I would do it

If Launchboard's report page takes eight seconds, I would trace its actual request. If six of those seconds are in a repeated query, I would fix that query or add the index first. I would consider caching only after deciding what can be stale, for how long, and how tenant data stays separated in the cache. Moving to a bigger database or a different host would not be on the list until the trace said so.

Performance review prompt

Inspect [journey] and the related frontend, API, database queries, jobs, and external calls. Use existing metrics or a safe staging test; do not load-test production. First report the baseline and the limits of the evidence. Rank the likely bottlenecks by measured impact and confidence. Recommend the smallest change, its trade-offs, a before/after measurement plan, and a rollback trigger. Do not implement until I approve a specific change.

Questions founders ask

Should I move to a faster database or a bigger server?

Not until a trace shows the database or the server is the constraint. Most slow vibe-coded apps are slow because of one repeated query or a missing index, and a bigger server makes that query fail at a larger scale for more money.

Is caching the answer?

Sometimes, and only after you have decided what can be stale, for how long, and how one customer's cached data stays out of another customer's view. A cache added before those three answers is a security bug waiting to happen.

What is a good latency target?

There is no universal number. Pick the journey, record today's p95, and set the target from what customers notice. A report that arrives in four seconds instead of eight is a win you can measure. A Lighthouse score going from 71 to 84 is not.

The whole guide, free

Fourteen pages. Five audits. One prompt.

Everything on these pages, plus the AI fast-track prompt that turns the guide into a 30-day plan for your own product. Put your email in and it's in your inbox in a minute.

Free, 14 pages, in your inbox in a minute. One short note a week after that.