For most apps, this really isn’t the case. An app that’s built well will be just fine.
@peter.hudson It’s normally 20% of logic which causes 80% of the workload units. It’s very likely that it can be optimized.
The optimize button doesn’t change your workload usage, it just removes unused parts of the app. You can use the logs to view which processes are consuming the most, and then begin to optimize them.
There are some simple rules of thumb which can help you:
- Use Schedule API Workflow on a list, rather than recursive workflows.
- Avoid passing lists of items into recursive workflows if you are using them.
- Use database searches rather than advanced filters.
- Avoid plugins like Fuzzy Search as they eat up workload units.
- Avoid Do-When-X frontend workflows that hit the server as these will all consume workload, even if someone isn’t even using the site as long as their tab is open.
You may find this useful: How to optimize your app’s workload units (biggest WU killers)
I would avoid using third-party plugins where possible, as that’s simply introducing a dependency on your app and can often make it more complex and hard to maintain than it needs to be. It’s perfectly possible to build an efficient app on Bubble, and it’s rare that I see an app’s workload units costing more than 10% or so of its revenue. We recently took over an app from an agency that heavily used Supabase and migrated that back into Bubble. Even though it cost more in workload units, it saved them more money in the long run through the development speed advantages.
People can argue that using an external backend or a plugin might not affect development speed, but if that were the case, that client wouldn’t have come running to us to save the app…
Of course, this varies significantly depending on the app type.
Also, https://getbuildprints.com/ is a free tool that allows you to chat with your Bubble app. If you see in your metrics that a certain part is using a lot of WU, you can use the AI Copilot to propose optimisation strategies. I hope it helps.