Update Million documents

I need to update a Million documents in Mongodb . Is there any efficient method to Update
I have tried Some Queries which affects CPU and Disk utilization

Hi @Santhosh_V,
i can link you two resource to read:
Performance Best Practices: Benchmarking | MongoDB
and
db.collection.bulkWrite() — MongoDB Manual

I hope it is useful for you!

Best Regards

1 Like

Thanks for the link Performance Best Practices: Benchmarking | MongoDB.

1 Like