Database index management improvements now live

Hi everyone,
My name is TJ Andrews, senior engineering manager on Bubble’s Platform team.

We’ve been working behind the scenes to make your apps faster and more reliable, especially when dealing with large amounts of data.

Today, I want to share some improvements we’ve made to how Bubble handles database operations that should make a noticeable difference in app performance for anyone who was experiencing lag in database searches, insertions, and deletions.

What we improved

Over the past few weeks, we’ve fixed inefficiencies and cleaned up and standardized other aspects of the indexing process on our side. As a result:

  • Database indexes are now created automatically during off-peak hours.

  • We removed a limitation that prevented indexes from being automatically created on(and thus speeding up) tables with more than 5 million records.

  • When you delete something that’s referenced by other tables, Bubble has to look up those references before completing the deletion. We’ve optimized those reference deletion lookups so they’re up to 90% faster.

  • Database searches are up to 50% faster. In technical terms: P99 latency went from 105ms to 58ms, P999 from 832ms to 475ms, with fewer slow queries and timeouts, preventing cascading performance issues where slow queries affect the entire system.

  • We are using HypoPG to test indexes before creating them, ensuring they will actually improve performance.

  • We set up weekly removal of unused indexes — we’ve already cleaned up 860k+ indexes (over 1TB of data).

How these updates help your apps

All Bubble app developers benefit from these improvements. They’re especially helpful for:

  • Apps with large datasets (index creation was previously limited at 5 million records)

  • Apps experiencing slow queries, timeouts, or performance degradation as they scale

  • Dedicated app customers who previously required manual platform team intervention (improvements rolling out in the coming weeks)

  • Any developer building data-intensive applications that need reliable performance

How the feature fits into our roadmap

These improvements make every Bubble app faster and more reliable. They help Bubble scale as your apps grow, and by handling performance automatically, we can focus on building the features you want.

How to access the new feature

These improvements are already live for all Bubble apps on our main environment. The improvements run automatically during off-peak hours.

For those of you on dedicated environments, we’re rolling this out in the coming weeks.

This is part of our ongoing effort to make sure Bubble scales with your ideas, no matter how big they get. We’ll continue investing in infrastructure improvements that make your apps faster and more reliable.

As always, if you have questions or notice any issues, don’t hesitate to reach out on the forum.

— TJ and the Platform team

68 Likes

:smiley: :+1:

1 Like

Everyone wins. :+1::+1::+1::+1::+1:

3 Likes

You are wonderful!

1 Like

Awesome update :fire:

The improvements run automatically during off-peak hours

What does this mean in practice @tj-bubble ? Are these off-peak hours on a per-app basis?

1 Like

Strong !!!, I have been noticing things but I have zero clue about all this. My live version much much faster than test version now a days. Is it about this ?

2 Likes

Actually even my users since yesterday asked me if I had launched something new, but I didn’t give it weight because many of them are under an office with a non-optimal wi-fi connection and I thought it was a moment with a good connection.. but yes actually now that I know I also see considerable improvements.. but also in general of app performance and memory consumption of the page.. I don’t know if this is related @tj-bubble

2 Likes

What does this mean in practice @tj-bubble ? Are these off-peak hours on a per-app basis?

Good question Petter! How it used to work was that we would detect slow queries as they happened, and try to create an index around the same time as they were happening. Now we detect the slow queries and schedule index creation to run in a nightly job (night for US east Coast hours). It’s generally when the overall load in shared cluster is lower.

We will likely continue optimizing our heuristic over time as well as we observe the effects.

6 Likes

If this works as expected this will be HUGE for many of my clients. Thanks @tj-bubble and the bubble team!

2 Likes

Definitely noticed page load was a bit faster over the weekend :slight_smile: :slight_smile:

2 Likes

Performance updates are always welcome. Thank you! :blush:

2 Likes

Love these updates! This is the kind that truly differentiates Bubble from Lovable and competitors, the infrastructure knowledge and the investment in database performance just can’t be replicated by sheer ‘vibe-coding’. Keep it up!

3 Likes

This is amazing! This was such a blocker for large-scale apps like ours. Thank you.

2 Likes

I’m always curious! How large is your app?

1 Like

We have a single table with 16 million records growing by 1-2 million records per month. So pretty large.

4 Likes

Nice :+1::+1::+1:

1 Like

wow, awesome

1 Like

great improvements, but we still have query problems when we trying to search data through app data with just hundreds of thousands data. Do you plan any performance improvement for this queries?

1 Like

Next step: server side rendering and ship only used code to the client :grinning_face:

7 Likes