Hello! I’d like to know how replication works with bulk replace if some document was not changed. I know mongo does not replace document if new document is the same as old one. Will mongo replicate all bulk operations or only those which really updated on master?
For example I upsert 1000 documents like that:
var updates = doclist.Select(m => new ReplaceOneModel<MyClass>(filter.Eq(x => x.Id, m.Id), m) { IsUpsert = true }).ToList();
var res = await marketsCollection.BulkWriteAsync(updates, null, ct);
and as result I have res.ModifiedCount =1 (only one document was updated)
So only one document change will be replicated or mongo will send all bulk updates to replicas to apply them in replicas?