public batch ( integer $batchSize = 100, |
||
$batchSize | integer | the number of records to be fetched in each batch. |
$db | the MongoDB connection. If not set, the "mongodb" application component will be used. | |
return | the batch query result. It implements the `Iterator` interface and can be traversed to retrieve the data in batches. |