Is there a roadmap for Exposed somewhere that is p...
# exposed
a
Is there a roadmap for Exposed somewhere that is possible to look at? I'm trying to find out if cursor based pagination is even planned or not. I could only find offset pagination, so we might need to implement it outselves.
c
Hi @Arnab Cursor-based pagination is possible to a restricted degree through
fetchbatchedResults()
: [source code](https://jetbrains.github.io/Exposed/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc/-query/fetch-batched-results.html]
Copy code
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