|
MongoCursor::batchSizeLimits the number of elements returned in one batch. Description
public MongoCursor MongoCursor::batchSize
( int
$batchSize
)A cursor typically fetches a batch of result objects and store them locally. This method sets the batchSize value to configure the amount of documents retrieved from the server in one round trip. However, it will never return more documents than fit in the max batch size limit (usually 4MB). Parameters
Return ValuesReturns this cursor. ExamplesExample #1 MongoCursor::batchSize and combinations with MongoCursor::limit
<?php Changelog
|