Hello,
I’m building my first Bubble app and it goes well so far.
I come here for advices on perf topic.
(the below is a simplified version of my use case, illustrating the objective I try to reach)
In the app, I have an events section where people can list up to 40 events. Each of them including 2 to 10 participants.
I would like to structure the page like this:
- RepeatingGroup Events, including:
- Event name
- Other event details such as date, place etc.
- RepeatingGroup Participants, including:
- Participant avatar
- Participant name and other participant informations
I have a Subscription table that contains
- subscriptionDate (Date)
- subscriptionRate (Number)
- participant (Participant)
- event (Event)
For performance reason, I would like to do this in a single search on the Subscription table, with no result so far. I investigated a :groupby event but I did not find a way to loop inside each Grouped:event for each RepeatingGroup Participants
I manage to do a Search on Events for the RepeatingGroup Events. Then, for each row, I can do a new search on Subscription with event=Event as a constraint.
This would give me my nested repeating group but it might create up to 41 queries (one for the list of events and then one per event).
I have 3 questions for the Bubble community:
- Did I miss a way to have nested repeating groups with one single query?
- If no, on the performance side,
- is it better to have one Search for… with a different constrain for each RepeatingGroup Events row OR
- Is it better to repeat the same Search for… but apply a different :filter per RepeatingGroup Events row (assuming that the :filter might be executed front end with no impact on performance or additional WU)
- Is there any better way to reach my goal ?
Thanks in advance for your help
Johann