1 year ago

Best way to load data efficiently

Posted 1 year ago by francoboy7

Hi everyone !

So I'm playing around with vueJS and Laravel as a backend API and I had a quick question :

Let's say I have all my properties return by an API call ([email protected]) when visiting the "List all properties"

What would be the best way to filter through them ?

I would be tempted to load them all at once and then have methods to filter through the array depending on the user filters, however I can see the main array becoming huge the more properties they are with time.


I could load the last 15 properties for the index and then make an API calls with custom filters as parameters and then display the result from that search.

Please sign in or create an account to participate in this conversation.