Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
d48f1ce9
Commit
d48f1ce9
authored
9 years ago
by
Jeff Yemin
Committed by
Robert J. Moore
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Renamed INSERT_MANY_OPTIONS to INSERT_UNORDERED
parent
c5ff3bf6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java
+2
-2
2 additions, 2 deletions
mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java
with
2 additions
and
2 deletions
mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java
+
2
−
2
View file @
d48f1ce9
...
...
@@ -58,7 +58,7 @@ public class MongoDbClient extends DB {
protected
static
final
Integer
INCLUDE
=
Integer
.
valueOf
(
1
);
/** 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
);
/**
...
...
@@ -246,7 +246,7 @@ public class MongoDbClient extends DB {
bulkInserts
.
add
(
toInsert
);
if
(
bulkInserts
.
size
()
==
batchSize
)
{
collection
.
insertMany
(
bulkInserts
,
INSERT_
MANY_OPTIONS
);
collection
.
insertMany
(
bulkInserts
,
INSERT_
UNORDERED
);
bulkInserts
.
clear
();
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment