DEV Community

Discussion on: Get MongoDB data 10x smaller & faster using lean function in NodeJs

Collapse
 
deepakjaiswal profile image
Sandeep • Edited

lean function reduce the size of document so its affect the response.
check all details
mongoosejs.com/docs/tutorials/lean...
if you have more data you can use compression npm package

Collapse
 
abdurrkhalid333 profile image
Abdur Rehman Khalid

thanks for mentioning this here, I will have a deeper look into that as well.