I switched from 1.9 to 2.2 and read the documentation . I was surprised to find that it is no longer possible to resume during a mass operation because operations do not allow options.
bulkOps.Add(new UpdateOneModel<BsonDocument>(filter, update)); collection.BulkWrite(bulkOps);
Must be
options.isUpsert = true; bulkOps.Add(new UpdateOneModel<BsonDocument>(filter, update, options)); collection.BulkWrite(bulkOps);
Is this work incomplete, intended, or am I missing something? Thanks.
c # mongodb batch-processing mongodb-.net-driver bulk
Adrian lopez
source share