mongoc_bulk_operation_t(3)
| MONGOC_BULK_OPERATION_T(3) | libmongoc | MONGOC_BULK_OPERATION_T(3) |
Bulk Write Operations
SYNOPSIS
typedef struct _mongoc_bulk_operation_t mongoc_bulk_operation_t;
DESCRIPTION
mongoc_bulk_operation_t <> provides an abstraction for submitting multiple write operations as a single batch.
After adding all of the write operations to the mongoc_bulk_operation_t <>, call mongoc_bulk_operation_execute() <> to execute the operation.
Warning:
See also:
Bulk Write Operations <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/bulk/> mongoc_bulkwrite_t <>
Note:
mongoc_bulkwrite_t <> uses the bulkWrite server command introduced in MongoDB server 8.0. bulkWrite command supports insert, update, and delete operations in the same payload. bulkWrite supports use of multiple collection namespaces in the same payload.
mongoc_bulk_operation_t <> uses the insert, update and delete server commands available in all current MongoDB server versions. Write operations are grouped by type (insert, update, delete) and sent in separate commands. Only one collection may be specified per bulk write.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
| February 10, 2026 | 1.30.7 |
