Let’s assume the database you connect to with your API contains a huge amount of items. Furthermore, you only want to load the items within a specific category. I know this can be done with a filter via a computed property.
However, it seems to me that it can save a lot of loading time when the filtering already takes place within the API. In this case, only the relevant items would be loaded from the database.
I searched the Internet extensively, but I still cannot find a lot of documentation on how this can be done. I have two questions:
- Does someone know how you can filter on API when you’re using VueJS? Or, as I understand it so far, in other words: how can you make dynamic API calls?
- Is this a recommended approach? Or is filtering with the use of computed properties fast enough? From what database size does it make sense to worry about loading time?
Thanks a lot.