MONGOC_CURSOR_GET_BATCH_SIZE(3)
π mongoc_cursor_get_batch_size π
okay so bestie, this one lives in libmongoc and it's literally the tiniest little getter β no cap, it just tells you the batch size on a cursor. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
uint32_t
mongoc_cursor_get_batch_size (const mongoc_cursor_t *cursor);
like, it hands you back a uint32_t and it does not touch your cursor. polite king behavior. π
πΈ PARAMETERS πΈ
cursorβ amongoc_cursor_t. that's the whole parameter list, she's low maintenance. π¦
π DESCRIPTION π
so this is the part where you go get the cursor's batch size β which is the maximum number of documents returned per round trip to the server. think of it as "how many snacks do we grab in one trip to the kitchen" but for documents. π
and here's the iconic detail you cannot forget: a batch size of zero means the cursor accepts the server's maximum batch size. so 0 isn't "nothing", it's "surprise me, server, give me your biggest batch". main character energy fr. β¨
also! check out Cursor Batches in the MongoDB Manual if you wanna go deeper β that's where the lore lives. π
π«Ά AUTHOR π«Ά
MongoDB, Inc
π₯ COPYRIGHT π₯
2009-present, MongoDB, Inc.
and that's the whole page, bestie β you ate that. π no thoughts, just batches. periodt. π
version 2.5.6 πΈ Oct 09, 2026 π mwah, go write some flawless cursor code π§
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms