OFFSET/page=N parameters, because they get linearly slower as you go deeper. Duro uses keyset cursors so every page is equally cheap.
Request
| Param | Default | Max | Notes |
|---|---|---|---|
limit | 20 | 100 | Page size. |
cursor | — | — | The nextCursor from the previous page. Omit for the first page. |
Response
items— the page, newest first (createdAt desc, id desc).nextCursor— pass this ascursorto get the next page.nullon the last page.hasMore—trueif another page exists.
Iterating
(createdAt, id) compound index, so the query plan is identical whether you’re on page 1 or page 1,000.