How Does Bubble Handle Data Fetching? [Burning Question]

Hi Bubblers,

I’m building a Tinder-like app where only one user profile is displayed at a time in a repeating group (with 1 cell). Say, Filters return 57 matches in total.

  • In the Network tab, I see Bubble fetches 1 row of data at a time.
  • In the Debugger, the repeating group’s data source shows all 57 matches.

I’m a bit confused, so I need clarification on a few things:

  1. Does Bubble load all matches into memory at once, or does it fetch data dynamically as needed?
  2. For scalability (with thousands of users), should I implement manual pagination (e.g., :items from #x to #y), or rely on Bubble’s default behavior?

Findings:

  • When performing a Do a search for with a single constraint, it seems the search request returns all the data at once (e.g., I’ve seen it return up to 100+ results).
  • When performing a Do a search for with multiple constraints, the msearch request only returns the data being displayed (e.g., 10 rows at a time if RG is set to 10), fetching more as needed on paginating (Show next on RG action).

Can anyone confirm if these findings are correct?

I’d love some insights on how to handle data fetching efficiently on bubble.

Thanks!

This topic was automatically closed after 70 days. New replies are no longer allowed.