1MONGOC_CURSOR_SET_BATCH_SIZE(3) libmongoc MONGOC_CURSOR_SET_BATCH_SIZE(3)
2
3
4
6 void
7 mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor, uint32_t batch_size);
8
10 • cursor: A mongoc_cursor_t.
11
12 • batch_size: The requested number of documents per batch.
13
15 Limits the number of documents returned in one batch. Each batch re‐
16 quires a round trip to the server. If the batch size is zero, the cur‐
17 sor uses the server-defined maximum batch size.
18
19 See Cursor Batches in the MongoDB Manual.
20
21 This is not applicable to all cursors. Calling
22 mongoc_cursor_set_batch_size() on a cursor returned by
23 mongoc_client_find_databases_with_opts(),
24 mongoc_database_find_collections_with_opts(), or
25 mongoc_collection_find_indexes_with_opts() will not change the results.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.25.1 Nov 08, 2023 MONGOC_CURSOR_SET_BATCH_SIZE(3)