New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wish: Support Bulk() operations in Mongo 2.6 #2016
Comments
+1 As far as I can see the inserts are done in parallel but still with individual queries, which is a really bad idea. Should support mongo bulk operation. |
The old |
Good stuff. Thanks for clarifying. What about The |
There's an |
Just to clarify: So per default mongoose will continue on error, right? |
No, |
is this issue resolved? I need ordered option |
Mongo 2.6 has been released now, and adds new bulk operations.
While the mongoose create() function can insert multiple documents, they are done serially. Mongo has a new option for "unordered inserts" which has the ability to further speed up inserts:
http://docs.mongodb.org/manual/reference/method/Bulk/#Bulk
It would be nice if this was exposed in Mongoose.
Thanks for Mongoose! I'm using it regularly.
The text was updated successfully, but these errors were encountered: