Arnab
08/21/2026, 7:31 AMChantal Loncle
08/26/2026, 2:53 AMfetchbatchedResults() : [source code](https://jetbrains.github.io/Exposed/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc/-query/fetch-batched-results.html]
kt
val batches: List<List<String> = Cities
.selectAll()
.fetchBatchedResults(batchSize = 25)
.take(2)
.map { it.toCityNames() }
The main restriction being that it only yields batches for queries involving tables with autoincrementing identity columns, and limits the cursor to this id value.
I've added a comment to your ticket EXPOSED-1064