BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
2.02k stars 213 forks source link

[BUG] BulkWriter does not allow unordered bulks #947

Closed thiagosalvatore closed 2 months ago

thiagosalvatore commented 3 months ago

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.

github-actions[bot] commented 2 months ago

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

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 14 days with no activity.