Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VojtechVitek opened this issue Oct 6, 2015 · 1 comment
Open

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

VojtechVitek opened this issue Oct 6, 2015 · 1 comment

Comments

@VojtechVitek
Copy link

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

@peterbourgon
Copy link
Contributor

It's technically possible, and you've identified the right place for the changes, but it's not currently supported. I can't see any reason why it couldn't be, but it's not a use-case SoundCloud currently has, so I suspect the best path forward would be to create a PR, which I'd be happy to review.

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

No branches or pull requests

3 participants