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 #182

Open
maryokhin opened this issue May 8, 2016 · 1 comment
Open

Cursor-based pagination #182

maryokhin opened this issue May 8, 2016 · 1 comment

Comments

@maryokhin
Copy link

maryokhin commented May 8, 2016

Hi, I tried integrating the framework in an existing project, but quickly ran into a problem that my client uses cursor-based pagination for the feed. The cursor is based on a timestamp, so I need to filter the feed by timestamp somehow.

activities = feed_manager.get_user_feed(user.pk).filter(activity_created__gte???)[:page_size]
boards = Board.objects.filter(pk__in=[a.object_id for a in activities])

The only examples I found were limit-offset or page-based pagination, which seem completely pointless for a real-time feed where there will be gaps and duplicates as new items come in.

Is this possible somehow?

@tbarbugli tbarbugli added this to the Docs improvements milestone Oct 17, 2016
@ankitmlive
Copy link

Hey @maryokhin Have you found some way to solve this ?

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

No branches or pull requests

3 participants