Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MongoDB.CursorSetBatchSize

Sets batch size,

Component Version macOS Windows Linux Server iOS SDK
MongoDB 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.CursorSetBatchSize"; MongoDBRef; Size )   More

Parameters

Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB
Size The new batch size. 100

Result

Returns OK or error.

Description

Sets batch size,
Limits the number of documents returned in one batch. Each batch requires a round trip to the server. If the batch size is zero, the cursor uses the server-defined maximum batch size.

See also

This function checks for a license.

Created 22nd May 2022, last changed 22nd May 2022


MongoDB.CursorNext - MongoDB.CursorSetLimit