kmongo / org.litote.kmongo.coroutine / CoroutineListIndexesPublisher / batchSize

batchSize

fun batchSize(batchSize: Int): CoroutineListIndexesPublisher<T> (source)

Sets the number of documents to return per batch.

Overrides the org.reactivestreams.Subscription.request value for setting the batch size, allowing for fine grained control over the underlying cursor.

Parameters

batchSize - the batch size

Return
this

Since
1.8

Mongodb
.driver.manual reference/method/cursor.batchSize/#cursor.batchSize Batch Size