Skip to content

Use only id for cursor #42

Description

@wmertens

When cursoring, the encoded cursor can be long. However, all the data is in the db and is uniquely identified by the id.

So, use the id of the last (first when reverse) item as the cursor and when getting the next page, first get the cursor values. It can probably be done in a single query so the latency impact should be small.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions