← All posts
14 October 2026 · ai, building

AI built my app fast. It just didn't build it to be fast.

AI built my app fast. It just didn't build it to be fast.

I build with AI every day and I'm not shy about it. Grain Hero, the agricultural commodities platform I'm the technical partner of, was built with Codex. That's vibe coding: I describe what I want, the AI writes the code, I check it, we go again. It's fast and it's how one person can ship something that used to need a team.

Here's a story about the part the vibe coding highlight reels skip.

It worked. It was just slow.

Grain Hero is full of data. Prices, tables, lists, the works, all pulled from a database and laid out on the page. Everything worked. Every page showed the right information.

It was also slow. Some pages took around 10 seconds to load. Saving a single field could take 20 seconds. Not broken, just painful. The kind of slow where you start wondering if you clicked the button properly, then click it again.

And people noticed. Our test users noticed. My business partner definitely noticed. And wasn't shy about telling me.

What was actually going on

So I started digging. It turned out almost every page was asking the database for everything. Every table, every row, every time, whether the page needed it or not.

Take the search bar. It has dropdown lists, like picking a commodity. That list only needs about 10 items. To fill it, the app was pulling roughly 10,000 rows of data and throwing almost all of it away. And it wasn't just the search bar. It was doing this everywhere, including when you saved one small change.

Think of it like sending someone to the supermarket for a bottle of milk and they come back with the entire store. You do get your milk. It just takes a while and most of what they carried home goes straight in the bin.

The AI had done exactly what I asked: show this data on this page. It just took the long way to get there, on every page.

Why I noticed

I built a similar app years ago, well before AI could write code. Back then the golden rule was simple: only ask the database for the data you actually need. Need ten prices? Ask for ten prices, not the whole price history of Australia.

That rule hasn't changed. The AI just didn't apply it, because nobody told it to and the app still "worked".

The fix

The fix wasn't clever and it wasn't me rewriting code by hand. I went back to Codex and explained the logic I expected: each page should only ask for what it shows. It agreed, made the changes and the difference was huge. Some pages went from about 10 seconds to about 1 second.

Same app. Same design. Same data on screen. The only change was asking the database better questions.

What this means if you're building with AI

AI is genuinely brilliant at getting something working. It's not always great at getting it working well. It won't tell you your app is slow because of how it's fetching data. It'll just keep doing it, politely, on every page.

That's where experience still matters. Not typing the code, but knowing what good looks like, noticing when something's off and knowing the right question to ask. AI does the heavy lifting. Someone still needs to know what's worth lifting.

If you've built something with AI and it's slower, clunkier or more fragile than it should be, start a chat. Sometimes the fix is one good question away.

Got something you want built? I read every message myself.

Start a chat