Hi,
I am running into one (or rather multiple) speed issues when trying to create a somewhat more advanced shopping list based on a number of recipes. I have no developing background and am new to bubble, but I have gotten everything to work based on the little knowledge I have. So I have most probably not taken the most elegant route
Now the problem is that things are running enormously slow, and I am wondering if, e.g. @keith 's ListShifter or the Repeating Group plugin (bdk) of @gaurav, might be a solution to my issues.
The use-case is simple: Have a recipe with a list of ingredients, select that recipe and put all ingredients into a shopping-list, which you can then tick off as you buy them in the store over the course of a few days. Slight complication, if you select multiple recipes, I want to have a single shopping list which categorizes items by shelf (e.g. fruit, veggies, dairy, etc.) and aggregates same type of ingredients across recipes.
This is how I have set it up:
Step 1: Create shopping list items via ‘Schedule API workflow on a list’ based on the individual recipe ingredients - this takes quite some time (same for de-selecting and deleting all the shoppinglist items again). I add a list of the shopping_list items to the user, to allow for direct referencing in step 2.
Step 2: Display shoppinglist items in two nested RG’s including some filtering. First RG uses Bubble’s ‘group by’ feature, to allow grouping by shelf. Nested RG, uses Bubbles ‘group by’ to group by ingredient name and to aggregates quantity. Filters are used to only show items that have not been marked as ‘bought’. This whole thing takes forever to load or update, e.g. if you change quantities - see next step.
Step 3: Changing servings for individual recipes needs to be reflected in the shoppinglist - hence I have another ’ Schedule API workflow on a list’ to update the relevant shoppinglist items accordingly per recipe. Also quite slow…
Step 4: User ticks-off an item and marks it as bought. Here I created a workflow, which does a search for the shopping-list item (or multiple items if they are aggregated across multiple recipes) and then saves a date into their ‘bought’ field, so I can track how people have been using the app. With conditional formatting I add a tick-mark and change font color to grey. Between ticking off the item and the conditional formatting to go into effect, easily takes more than 1 sec.
I have looked extensively through the forum, however couldn’t quite follow any more after post 98 in the list shifter post .
Any help or pointing in the right direction would be tremendously appreciated.
Let me know if helpful to share the link to the app.
Thanks!
Georg