Saurabh Kumar Profile picture
Engineer || Speaker I talk about #nodejs. Cool things on the way
Nov 1, 2020 7 tweets 3 min read
Yesterday one of my colleagues asked me about how to boost MongoDB performance.
I explained to him, and now it's worth sharing:

Performance tuning for #MongoDB :

1. Create custom indexes for your queries.

Thread 👇

#javascript #Nodejs 2. If you use mongoose always use "lean", by default mongoose queries return an instance of Mongoose Document class, and these are much heavier than vanilla javascript objects.

#javascript #Database #MongoDB #NoSQL