简体   繁体   中英

How to get a large pool of data in Vue.js?

I am new in Vue.js ecosystem and need some advise.

When user call specific URL from client side, backend ( Node.js ) return huge datapool in a stream mode. In backend application I use JSONStream package for that task. Backend return me huge datapool by pieces. Now in client side I am tring to receive that data in stream mode.

I tried axios package but it waits for the whole data pool. I have to get the data in batches. Can someone advice or show by little example how I can make it?!

It will be surely a very poor database design. You will only need to send the least and only required data for each client side view or module. So that you will get your application working smoothly on both ends.

Sending thousands or millions of data from the server and receiving them from the client is really awkward. Thus, I would suggest you to give a re-look in the backend to try allowing data as per the requirement only.

View is just a showcase, and should not be used as storecase!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM