[Vuejs]-What is the best way to build an api for huge list and retrieve it via vuejs

0👍

You can send 100 posts at a time when fetching the next 100 posts you can send the last posts Id and use it as a cursor (Asuming you are using SQL based database but then with a little tweak it works for NoSql databases too) to fetch the post in a efficient way

You can overwrite the posts global variable to make the webpage more efficient in terms of memory unless you want the post to be stored in some Local storage and parse them if the posts are not like very frequently updated

In routing you can use a dynamic value to set the cursor so that you can group the posts as 100 and use it to traverse through them

Leave a comment