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

[BUG] BulkWriter does not allow unordered bulks #947

Open
thiagosalvatore opened this issue Jun 10, 2024 · 1 comment
Open

[BUG] BulkWriter does not allow unordered bulks #947

thiagosalvatore opened this issue Jun 10, 2024 · 1 comment
Labels

Comments

@thiagosalvatore
Copy link
Contributor

Describe the bug
PyMongo and Motor allow us to send a flag unordered=False that makes it possible to run the bulk write for all operations even if one of them fails. This flag is currently not available on beanie.

To Reproduce

        async with BulkWriter() as bulk_writer:
            await duplicated_doc.insert(bulk_writer=bulk_writer)
            await doc.save_changes(bulk_writer=bulk_writer)

Expected behavior
The doc.save_changes operation should succeed and the duplicated_doc.insert should fail. The doc should be updated in the database.

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the Stale label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant