Skip to content
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

Add BulkWrite to MongoDbRepository #6614

Closed
ChEhrhard opened this issue Dec 12, 2020 · 4 comments
Closed

Add BulkWrite to MongoDbRepository #6614

ChEhrhard opened this issue Dec 12, 2020 · 4 comments
Assignees

Comments

@ChEhrhard
Copy link

It could be useful to fully implement the Collection.Bulkwrite() fonction from Mongo Client in yout MongoDbRepository.

This can be much faster than a loop of Update or Insert. In addition the IsUpsert option avoid the need of specificaly call Update or Insert.

Link to officiel doc .

@maliming
Copy link
Member

You can implement it in a custom repository method. : )

@ChEhrhard
Copy link
Author

That's what i've done .

However, it means reusing all the logic you've implemented in your Insert and Update functions ( ID check, audits, events, etc ... ) . I can of course reproduce your logic but i have to take care about all coming evolutions to stay as compliant and integrated as possible to your repository logic.

@hikalkan
Copy link
Member

Thanks @ChEhrhard for your suggestion. We will consider to add it.

@enisn
Copy link
Member

enisn commented Dec 15, 2020

Planned and scheduled, can be followed at issue #6654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants