Benchmarking C# Mongo–ReplaceOne vs. AddToSetEach

Recently I was looking at a MongoDB service and wondered if doing ReplaceOne was really the right call. My document was pretty simple – some identifying information that doesn’t change, and an array containing informational state that grows (never updates) as my program runs. I set up the documents to update to the database every … [Read more…]