Skip to content
Snippets Groups Projects
Commit d48f1ce9 authored by Jeff Yemin's avatar Jeff Yemin Committed by Robert J. Moore
Browse files

Renamed INSERT_MANY_OPTIONS to INSERT_UNORDERED

parent c5ff3bf6
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ public class MongoDbClient extends DB { ...@@ -58,7 +58,7 @@ public class MongoDbClient extends DB {
protected static final Integer INCLUDE = Integer.valueOf(1); protected static final Integer INCLUDE = Integer.valueOf(1);
/** The options to use for inserting many documents */ /** The options to use for inserting many documents */
protected static final InsertManyOptions INSERT_MANY_OPTIONS = protected static final InsertManyOptions INSERT_UNORDERED =
new InsertManyOptions().ordered(false); new InsertManyOptions().ordered(false);
/** /**
...@@ -246,7 +246,7 @@ public class MongoDbClient extends DB { ...@@ -246,7 +246,7 @@ public class MongoDbClient extends DB {
bulkInserts.add(toInsert); bulkInserts.add(toInsert);
if (bulkInserts.size() == batchSize) { if (bulkInserts.size() == batchSize) {
collection.insertMany(bulkInserts, INSERT_MANY_OPTIONS); collection.insertMany(bulkInserts, INSERT_UNORDERED);
bulkInserts.clear(); bulkInserts.clear();
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment