Hello Bubble community!!
I have been looking to optimize my platform built with bubble and am completely stuck with something that should be quite easy, but cannot figure out how to do. Probably the most advanced of you will find a way around
To explain, I have a few classes (called “Taller”) with for each of them a list of time slots (called “Disponibilidad”) at which the class will occur. I have a main page that look just like Airbnb with a RG showing all the classes, and the user can use a filter to see only the classes that happen on a specific day.
Exemple: A user will select May 5th in a calendar, then the RG will show only the classes that have at least 1 timeslot on May 5th.
How I do it so far: I have been using advanced filter to filter the “Disponibilidad” of each of those classes as shown on screenshot 1, with the constraint that the date of this class is indeed matching with the date selected by the user in the calendar (see screenshot 2) which is saved in a custom state of this calendar.
Screenshot 1:
Screenshot 2:
My problem: Due to the high number of classes I have, the advance filter is taking an enormous amount of time to run, and I would love to find a way to put this condition to run in the main Search for and thus highly reduce the amount of time needed for the search.
I have been trying to simply add another constraint on the main Search for saying “Disponibility contains Search for Timeslot with the date matching the one selected by the user” but in this case I am forced to put “First item” in my constraints and thus only 1 result appear in the RG instead of all the classes that would have 1 class on this day…
Does anyone has an idea or has seen such a case in the past? You would be my savior hahaha seeing how many hours I have lost on this problem!!! @mikeloc @ihsanzainal84 @keith @tylerboodman