How to reduce Workload Units (WU) on page load
In this Bubble.io tutorial we demonstrates 3 ways to show default data in your Bubble app when the page loads. Two of the examples involve creating a Custom State and adding extra workflows. We demonstrate who you can achieve the same effect with default data on a page without adding extra workflows or having to repeat Do a Search searches.
Slash Your Workload Units: Learn the lean way to display data on page load in Bubble!
Optimize Your App's Performance: Discover how to reduce workload units and streamline your workflows in this Bubble tutorial.
Efficient Data Loading: Master the art of lean development and cut back on unnecessary workflows in your Bubble app.
Reducing Workload Units and Optimizing Page Load
In this Bubble tutorial video, I'm going to demonstrate one way that you can make your app leaner, reduce your workload unit cost, and cut back on the number of workflows that you have to have on a page or when you're thinking about wanting to display data on a page by default on page load.
Using a ChatGPT Clone App as an Example
I'm going to be using the ChatGPT clone app that we built in a previous video. Basically, I have a list of conversations that I've started with ChatGPT and by clicking on one, it displays the history of that conversation in this rather minimalist chat interface. I can swap between them and I have set up the ability so when the page loads, the first conversation is loaded in.
The Leanest Approach to Loading Data
I'll show you how I've done that because I think this is the leanest approach. I've got a repeating group of conversations, so that is one search that Bubble takes place and does when the page loads. Then I have a page body group here which contains a list of all my chat messages, my multiple input, and my button to interact with ChatGPT.
Utilizing Existing Searches
I say data source repeating groups conversation because that search is already taking place to populate this repeating group. I say list of conversations first item and so when the page loads, this is the source of the data that's going to be put into here. My messages are simply saying conversation equals parents groups conversation and it allows me to easily identify the conversation because the conversation is always page bodies conversation since I've set the type of content to conversation.
Avoiding Unnecessary Workflows
That's the leanest approach. I'm going to now demonstrate two ways or at least two ways that I think you could over complicate this. You're going to end up using more workload units and if you don't need to use a workflow and you choose to, then I think that is clearly not a lean way of developing a Bubble app.
Using Custom States: A Less Lean Approach
Another way that you could do it is by putting a custom state anywhere on the page. We'll say viewing conversation. Then I will now say on page load set state viewing conversation. Remember, these are the not-so-lean ways of going about it. This is deliberately adding in a workflow when there doesn't need to be one.
Repeating Processes and Adding Unnecessary Workflows
I could make this even less lean because instead of referring to a repeating group where search is already taking place, I can do a search here. Yes, Bubble has a number of different optimization steps when the page loads, but I am still repeating a process that's already taking place and I've had to add in another workflow.
Returning to the Lean Approach
If we go back to what I started with, we can get rid of that. We can instead say here that the data source is what I want to appear when the page loads. So I can say look at my repeating group conversations which is here, this the conversations first item.
Efficient Toggling Between Conversations
The clever thing is as that loads in, when I click on a new conversation, here is my workflow. I just say display data in page body because page body is the element on my page which contains the conversation that I'm currently viewing. Even though the default is fetching the first one, when I click on a new conversation, it simply toggles between them.
Conclusion: Developing Lean Bubble Apps
That's one way of ensuring that you develop your Bubble apps with lean development in mind. We've cut back on any unnecessary workflows, we've not had to even use a custom state in order to display data on page load. These are some small ways that you can reduce workload units being used in your app and you can develop your app more leanly.
Ready to Transform Your App Idea into Reality?
Access 3 courses, 400+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 400+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
14-Day Money-Back Guarantee
We’re confident this bundle will transform your app development journey. But if you’re not satisfied within 14 days, we’ll refund your full investment—no questions asked.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
Not at all. Our courses are designed for beginners and guide you step-by-step in using Bubble to build powerful web apps—no coding required.
Forever. You’ll get lifetime access, so you can learn at your own pace and revisit materials anytime.
Our supportive community is here to help. Ask questions, get feedback, and learn from fellow no-coders who’ve been where you are now.
Absolutely. If you’re not satisfied within 14 days, just reach out, and we’ll issue a full refund. We stand by the value of our bundle.
Yes, this is a special limited-time offer. The regular price is $350, so take advantage of the discount while it lasts!