MongoLink`
MongoLink`

MongoCursorSetBatchSize

MongoCursorSetBatchSize[MongoCursor[],size]

sets the number of documents MongoCursor[] will return as specified by size.

Details and Options

Examples

Basic Examples  (1)

Connect to a MongoDB server running locally:

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

Find all of the documents in the collection:

Find the batch size of the cursor:

Set the batch size to 100:

Find the updated batch size of the cursor:

Wolfram Research (2018), MongoCursorSetBatchSize, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html.

Text

Wolfram Research (2018), MongoCursorSetBatchSize, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html.

CMS

Wolfram Language. 2018. "MongoCursorSetBatchSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html.

APA

Wolfram Language. (2018). MongoCursorSetBatchSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html

BibTeX

@misc{reference.wolfram_2024_mongocursorsetbatchsize, author="Wolfram Research", title="{MongoCursorSetBatchSize}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_mongocursorsetbatchsize, organization={Wolfram Research}, title={MongoCursorSetBatchSize}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCursorSetBatchSize.html}, note=[Accessed: 21-December-2024 ]}