Update millions of documents in a collection with hundreds of millions of documents

Hi,

thank you for the reply and for pointing me to that course on performances. I’ll for sure have a look at it.

Indexes were fine, the problem was related to peering. We did set up peering between Atlas and our aws vpc, but it turns out lambdas, by default, run in their own vpc.

We solved this configuring that lambda to run in the proper vpc and after that it was really fast