Hi Soorya
Will there be a performance degradation using the replaceOne on a larger collection
Performance is a deep issue, and a lot of it are highly dependent on your use case, your deployment, the content of your collection, the update you’re performing, the size of the update, the size of your RAM, the speed of your disk, and many other factors specific to you. As to your question, I’m not certain I understand performance degradation of replaceOne as opposed to doing what?
Have you tried using bulk replaceOne and compare its relative performance against another alternative approach?
Best regards,
Kevin