Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Pagination #25

Open
DanielSharkov opened this issue May 22, 2019 · 2 comments
Open

Pagination #25

DanielSharkov opened this issue May 22, 2019 · 2 comments
Labels
api New API feature
Milestone

Comments

@DanielSharkov
Copy link

The following plural graph endpoints are perfect candidates for pagination:

  • Query.users
  • Query.posts
  • User.posts
  • User.publishedReactions
  • Post.reactions
  • Reaction.reactions
@romshark romshark added the api New API feature label May 22, 2019
@romshark
Copy link
Owner

This API feature is being worked on in the pagination branch right now.

@romshark
Copy link
Owner

This feature is stalled due to dgraph/#3472 and dgraph/#3473. Pagination should be done using indexed cursors which seems to be broken right now. offset-based pagination, which is the current implementation, is very slow on large datasets, it takes ~2.5-5 seconds to get the last page of an ~80k posts dataset.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api New API feature
Projects
None yet
Development

No branches or pull requests

2 participants