mongoc_bulk_operation_t * mongoc_collection_create_bulk_operation ( mongoc_collection_t *collection, bool ordered, const mongoc_write_concern_t *write_concern) BSON_GNUC_WARN_UNUSED_RESULT;
If the operations must be performed in order.
An optionalor NULL.
This function shall begin a new bulk operation. After creating this you may call various functions such as, and others.
After callingthe commands will be executed in as large as batches as reasonable by the client.
If ordered is true, then processing will stop at the first error.
If ordered is not true, then the bulk operation will attempt to continue processing even after the first failure.
write_concern should contain the write concern you wish to have applied to all operations within the bulk operation.
Errors are propagated when executing the bulk operation.
A newly allocatedthat should be freed with when no longer in use.
Failure to handle the result of this function is a programming error.