1MONGOC_CURSOR_SET_BATCH_SIZE(3) libmongoc MONGOC_CURSOR_SET_BATCH_SIZE(3)
2
3
4
6 mongoc_cursor_set_batch_size - mongoc_cursor_set_batch_size()
7
9 void
10 mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor, uint32_t batch_size);
11
13 · cursor: A mongoc_cursor_t.
14
15 · batch_size: The requested number of documents per batch.
16
18 Limits the number of documents returned in one batch. Each batch
19 requires a round trip to the server. If the batch size is zero, the
20 cursor uses the server-defined maximum batch size.
21
22 See Cursor Batches in the MongoDB Manual.
23
24 This is not applicable to all cursors. Calling mongoc_cur‐
25 sor_set_batch_size on a cursor returned by mongoc_client_find_data‐
26 bases_with_opts, mongoc_database_find_collections_with_opts, or mon‐
27 goc_collection_find_indexes_with_opts will not change the results.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.17.4 Feb 04, 2021 MONGOC_CURSOR_SET_BATCH_SIZE(3)