← All guides

Bubble App Slow or Burning Workload Units? How to Fix It

Bubble

Your Bubble app felt quick when you built it. Now pages take a while to fill, a list spins before it appears, and an email from Bubble says you’ve used 75% of your monthly workload units halfway through the month.

Slow pages and high workload can be two sides of the same problem. Bubble’s docs describe workload as the server resources used to host, run and scale a Bubble app, measured in workload units (WU) (Bubble: Workload). Work the server doesn’t have to do is work your users don’t have to wait for.

This guide shows you how to find what’s actually costing you, then works through the usual suspects in a sensible order.

First, a reality check

Bubble’s optimization framework makes two points worth keeping in mind:

  • Rising workload as your app grows is expected. It “doesn’t mean your app is performing worse”, it may simply be used more.
  • Optimizing should never make the experience worse for users. It’s about doing the same job with less waste.

The same article gives a useful lens for every fix below. Waste comes from complexity (more steps than needed), volume (returning more records or data than you use) and repetition (doing the same work more often than needed).

Step 1: find out where the WU is going

Don’t guess. Bubble gives you two tools.

App Metrics

Open the Logs tab and the App Metrics dashboard. According to Bubble’s App Metrics guide, you can:

  • See usage over time and click a day with a spike to zoom in on it.
  • View a pie chart of WU by activity type, then hover a slice for the WU spent, its share of the total and the number of runs.
  • Drill down into individual workflows and expressions to see what they’re doing.

Bubble’s activity types article notes that the dashboard splits usage into Development and Live, and both count toward your total. Running the development version of the app still uses WU, just as Live does. Work inside the editor is different: opening the App Data tab or deleting records there does not use WU. The exceptions are CSV uploads, CSV exports and bulk operations started from the editor’s CSV tools, which do use WU.

Server logs

The Server logs tab shows the WU billed for every action and the workflow’s total. This is how you confirm whether a fix worked.

Write down your top three to five offenders before changing anything. A heavy operation that runs rarely is less important than a moderate one that runs thousands of times a day. Bubble’s workflows article puts it this way: prioritize work that is both expensive and frequent.

Know what things cost

Bubble publishes a table of base costs for each activity. At the time of writing, it lists performing a database search at 0.3 WU, a server-side workflow action at 0.6, each outbound API call at 0.1 and each item added to the API workflow scheduler at 0.1. Searches also cost 0.000003 WU per character of data returned and 0.015 WU per record returned. Real operations are made of several of these, so the table is for understanding, not for adding up your bill by hand.

Step 2: what happens when the page loads

Bubble’s page load article explains that a fresh page load does three things: it loads the page, loads the data the page needs (searches, repeating groups, counts and other expressions) and runs any workflows set to run on page load. All of that happens every time anyone opens or refreshes the page.

Two details catch people out:

  • Go to page on the same page re-runs page-load workflows. Using Go to page to update a URL parameter or the page’s thing doesn’t reload the page, but Bubble says page-load events “will still trigger”. In single-page apps that can mean the same workflow runs many times per visit.
  • Users refresh. One user doesn’t equal one page load, so you can’t control how often this runs.

What to do, following Bubble’s own suggestions:

  1. Load less up front. Show a short list and use pagination or load-on-scroll instead of loading everything.
  2. Defer what isn’t needed yet. Put dashboards, statistics and secondary lists behind a click, a tab or a hidden group that only loads when shown.
  3. Consider static content for pages that look the same to everyone, such as a home page with featured items. Bubble notes this can use less workload and may load faster, at the cost of manual upkeep.
  4. Check page-load workflows. Client-side actions like showing and hiding elements don’t consume workload; server-side actions do.

Step 3: searches, nested searches and :filtered

Bubble’s searches article covers patterns that can be expensive.

Nested searches

This can drive up WU, and it hides well. Bubble’s example: a repeating group lists client companies, and each row counts the employees at that company. It looks like one search. It’s actually one search for the companies plus one count per row. With 3 rows that’s 4 searches; with 50 rows, 51.

Fixes include storing the number on the company record and updating it when employees change, or loading the extra detail only when someone opens a company.

:filtered and advanced filters

Bubble warns that :filtered “can sometimes drastically decrease the efficiency of a search, both slowing it down and increasing WU consumption”. Advanced filters make Bubble process each row, which can trigger extra queries. Its advice is to rely on search constraints instead wherever you can. Bubble’s performance notes make the same point: a filter the database can apply is faster than one Bubble applies after fetching the data.

Return less data

Bubble returns every field on a record when you search, not just the ones you display. So:

  • If you only need a number, use :count or :average so Bubble returns a number instead of a list.
  • Don’t load 1,000 records into a repeating group to show 20.
  • Avoid storing huge text or lists on records that get searched often.

Identical searches run once

There’s some good news. Bubble’s docs say identical searches in elements on the same page are only processed once. Searches that differ, even by one constraint, run separately, and a Do a search for inside a workflow runs every time the workflow does. Reusing the same search, for example from a group’s data source, can save real work.

Step 4: workflows and backend workflows

Bubble says a workflow itself costs nothing; its event and actions are what leave a footprint. From the workflows article:

  • Cut actions. Ask whether each one is needed, whether two can be combined, and whether some can be skipped with Terminate this workflow.
  • Operations on lists cost more than on single items. Changing, copying or deleting a list of things is a heavy operation, so watch for it in frequently run workflows.
  • Order your conditions. Bubble stops evaluating “and” conditions after the first “no”, so put the cheap check first and the search-based check last.

For scheduled and recurring work, Bubble’s backend workflows article adds:

  • Recursive workflows reschedule themselves once per item. Schedule API workflow on a list schedules everything in one operation and, Bubble says, in most cases uses less workload than ongoing rescheduling.
  • A recursive workflow needs a stop condition. Without one it can keep rescheduling itself. Bubble also documents an infinite recursion protection feature, but don’t rely on it as your brakes.
  • Check recurring events. Something set to run every few minutes may only need to run hourly or daily.

Step 5: API Connector calls and timeouts

Each outbound call has a cost, and an API call used as a data source on a page runs whenever that page needs it. Bubble’s API Connector docs explain that a call can be used either as an action or as a data source. If the data doesn’t change minute to minute, consider calling the API in a workflow and saving the result, then showing the saved copy.

On timeouts, Bubble’s hard limits page lists:

  • Workflows that take more than 300 seconds (5 minutes) time out. Bubble adds that if your app comes close to its capacity, throttling can make workflows time out sooner than you’d expect.
  • API Connector responses have a 50 MB limit; bigger responses fail with “response too large” in the logs.
  • Headers in API calls are limited to 8,000 characters in total.

When an API call seems to time out, check the server logs first to see whether the external service was slow, returned an error or sent back a huge response. If the slow part is the other service, ask it for less data (pagination, fewer fields) or move the call to a backend workflow so users aren’t left waiting.

Step 6: measure, then repeat

After each change, go back to the server logs and App Metrics and compare the same workflow or page over a similar period. Change one thing at a time, so you know what worked. If a fix doesn’t move the number, undo it and move to the next offender.

Two things help while you work:

  • Set up notifications. Bubble emails you at 75% and 100% of your monthly allowance and when it detects a spike. You can also add custom alerts from the Notifications tab in Settings or the Logs page (Bubble: Workload notifications).
  • Know what happens if you go over. Bubble’s pricing docs say apps can accrue flexible overages so they stay available, charged per extra 1,000 units, and that you can buy a workload tier instead of upgrading your plan. Plans are split into Web only, Mobile only and Web + Mobile. Within one project, the monthly WU allowance is shared by every platform on that plan.

When Bubble isn’t the right home any more

Sometimes the honest answer is that the app has outgrown its structure, or the platform. Know the trade-off before you decide. Bubble’s ownership page says Bubble apps “can only be run on the Bubble platform” and there’s no way to export the app as code. Your data can be exported, but moving off Bubble means rebuilding the logic. Fix the top few offenders before you decide to rebuild. The production readiness guide can help you judge what else needs attention.

If it’s still slow or burning WU, a vetted senior engineer can find the biggest drains, fix them and show you what was going wrong. Fixed price, agreed upfront. See /fix/bubble.

FAQ

Why did my WU bill jump?

Open App Metrics, click the day the spike started and drill into the activity types. Likely culprits include a new page-load workflow, a nested search in a repeating group, a recursive or recurring workflow running more often than intended, Go to page re-running page-load workflows, or a lot of testing in the development version of the app, which also counts. Looking at or deleting records in the App Data tab does not use WU; CSV uploads, exports and bulk operations from the editor’s CSV tools do. If the same project has both a web app and a mobile app, they draw from one shared WU allowance.

Does :filtered cost more than constraints?

It can. Bubble says :filtered, especially with advanced filters, can drastically slow a search and raise WU, because Bubble processes rows after the search instead of letting the database narrow them. Use constraints where you can.

How do I fix API Connector timeouts?

Check the server logs to see whether the call itself is slow, failing or returning a very large response. Workflows time out after 300 seconds and API responses are capped at 50 MB. Request less data, save results instead of fetching them on every page load, or run long calls in a backend workflow.

Will a dedicated plan make it faster?

A dedicated instance is an Enterprise option that gives you an isolated Bubble server (Bubble: Dedicated instance). It won’t fix a nested search or an over-eager workflow, and those still cost the same work. Fix the expensive patterns first, then talk to Bubble about hosting if you still need more.

Can I export my Bubble app’s code?

No. Bubble’s docs say apps only run on Bubble and can’t be exported as code. Your data can be exported, but rebuilding elsewhere means recreating the logic.

Comments

Add a comment

Generated for you. Click to type your own.

Required. Never shown on the page. Privacy policy.

Basic markdown: **bold**, *italic*, `code`, lists, quotes, and fenced code blocks. HTML shows as plain text.

Your draft stays on this device until you post.