Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.9
-
None
Description
The following code throws an exception when connected to a 2.6.x server:
BsonDocument[] documents; // assume it has 10,000 documents
|
var result = collection.InsertBatch(documents);
|
The fluent bulk API version of the same operation does not throw an exception:
BsonDocument[] documents; // assume it has 10,000 documents
|
var bulk = collection.InitializeOrderedBulkOperation();
|
foreach (var document in documents)
|
{
|
bulk.Insert(document);
|
}
|
var result = bulk.Execute();
|