1MONGOC_COLLECTION_CREATE_BULK_OPERATlIiMObONmN(oG3nO)gCo_cCOLLECTION_CREATE_BULK_OPERATION(3)
2
3
4
6 mongoc_collection_create_bulk_operation - mongoc_collection_cre‐
7 ate_bulk_operation()
8
10 mongoc_bulk_operation_t *
11 mongoc_collection_create_bulk_operation (
12 mongoc_collection_t *collection,
13 bool ordered,
14 const mongoc_write_concern_t *write_concern) BSON_GNUC_WARN_UNUSED_RESULT
15 BSON_GNUC_DEPRECATED_FOR (mongoc_collection_create_bulk_operation_with_opts);
16
18 This function is deprecated and should not be used in new code.
19
20 Please use mongoc_collection_create_bulk_operation_with_opts() instead.
21
23 • collection: A mongoc_collection_t.
24
25 • ordered: If the operations must be performed in order.
26
27 • write_concern: An optional mongoc_write_concern_t or NULL.
28
30 This function shall begin a new bulk operation. After creating this you
31 may call various functions such as mongoc_bulk_operation_update(),
32 mongoc_bulk_operation_insert() and others.
33
34 After calling mongoc_bulk_operation_execute() the commands will be exe‐
35 cuted in as large as batches as reasonable by the client.
36
37 If ordered is true, then processing will stop at the first error.
38
39 If ordered is not true, then the bulk operation will attempt to con‐
40 tinue processing even after the first failure.
41
42 write_concern contains the write concern for all operations in the bulk
43 operation. If NULL, the collection's write concern is used. The global
44 default is acknowledged writes: MONGOC_WRITE_CONCERN_W_DEFAULT.
45
47 Errors are propagated when executing the bulk operation.
48
50 A newly allocated mongoc_bulk_operation_t that should be freed with
51 mongoc_bulk_operation_destroy() when no longer in use.
52
53 WARNING:
54 Failure to handle the result of this function is a programming er‐
55 ror.
56
57 SEE ALSO:
58 Bulk Write Operations
59
60
61 mongoc_bulk_operation_t
62
64 MongoDB, Inc
65
67 2017-present, MongoDB, Inc
68
69
70
71
721.23.1 OctM2O0N,GO2C0_2C2OLLECTION_CREATE_BULK_OPERATION(3)