1MONGOC_CURSOR_SET_BATCH_SIZE(3)    libmongoc   MONGOC_CURSOR_SET_BATCH_SIZE(3)
2
3
4

NAME

6       mongoc_cursor_set_batch_size - mongoc_cursor_set_batch_size()
7

SYNOPSIS

9          void
10          mongoc_cursor_set_batch_size (mongoc_cursor_t *cursor, uint32_t batch_size);
11

PARAMETERS

13cursor: A mongoc_cursor_t.
14
15batch_size: The requested number of documents per batch.
16

DESCRIPTION

18       Limits  the  number  of documents returned in one batch. Each batch re‐
19       quires a round trip to the server. If the batch size is zero, the  cur‐
20       sor 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
25       mongoc_cursor_set_batch_size()    on    a    cursor     returned     by
26       mongoc_client_find_databases_with_opts(),
27       mongoc_database_find_collections_with_opts(),                        or
28       mongoc_collection_find_indexes_with_opts() will not change the results.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.23.1                           Oct 20, 2022  MONGOC_CURSOR_SET_BATCH_SIZE(3)
Impressum