BeanieODM/beanie

[BUG] BulkWriter does not allow unordered bulks

thiagosalvatore opened this issue · 2 comments

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.

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

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