-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Use BulkOperations API in MongoItemWriter #3713
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
Comments
Hi @benas, may I look into this one? |
Sure, you are welcome. I assigned it to you. Thank you! |
@parikshitdutta oh sorry for that I hope you are safe! No worries, I will let you know once I start working on your PR. Thank you. |
Hi @benas, we are blessed to be safe and secure, otherwise it has devastated our place! Things getting back to normal. Thanks for asking and caring. |
Resolved with #3721. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As of v4.2, the
MongoItemWriter
uses a for loop to save items through the mongo template. Usingorg.springframework.data.mongodb.core.BulkOperations
should give better performance.It should be noted that
template.save
is an upsert operation, so we need to use an equivalent operation in theBulkOperations
API.Reference: https://stackoverflow.com/questions/61644406
The text was updated successfully, but these errors were encountered: