Skip to content

Cursor-based pagination to fetch the "previous" page #39

@VojtechVitek

Description

@VojtechVitek

Is it possible to use the cursor-based pagination to fetch the previous page (ie. to get all the new items with higher score than items coming from the first request)?

I guess to "go back", we'd have to use reversed order of the Redis data (ZRANGEBYSCORE, max=+inf, min=StartScoreStr) at

"ZREVRANGEBYSCORE",

Would it make sense? Does Roshi already support this feature (and I'm just blind)?

Any feedback appreciated.

Related to #36, CC: @peterbourgon @pkieltyka

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions