I am currently working on a to-do list app and have a feature that displays a user’s events and the events of other users that are in the same group. I am setting up a filtering feature for the repeating group that is displaying the events and have been instructed that the repeating group should only filter the search on a button click and not automatically. The way I have it setup is as follows:
-
“do a search” for events in the repeating group on page load without using the filters as constraints
-
when the user selects the filters to put in place and clicks the button to apply filters, there is another search done and displayed in the repeating group which does constrain using the filter fields (done using the action “display list”)
-
clicking the cancel button uses the action “display list” for the repeating group and does the original search that happens on page load
The functionality of this works completely fine but my question lies in how efficient is this from a performance stand point. From my understanding, searches done are downloaded to the RAM and if the same search is done, the data is just pulled up from there (please correct me if I am wrong).
Will this setup slow the app down if done at scale or is this fine to do? And if it will slow it down to a not insignificant degree, what would be the most efficient way to do this?