I use mongoose and react to fetch data from a mlab database. The probleme is that the mlab database have a size of 200 MB, it's a collection of more than 400 000 objects. So when i fetch i have JS error (out of memory) or the request is pending during 2 or 3 mins.
I don't know how to improve this request.
I also need to do some data formating and i don't know if it's better on back or front end..
I need your help to find a solution. Thanks a lot