dgraph_graphql_go icon indicating copy to clipboard operation
dgraph_graphql_go copied to clipboard

Pagination

Open DanielSharkov opened this issue 6 years ago • 2 comments

The following plural graph endpoints are perfect candidates for pagination:

  • Query.users
  • Query.posts
  • User.posts
  • User.publishedReactions
  • Post.reactions
  • Reaction.reactions

DanielSharkov avatar May 22 '19 22:05 DanielSharkov

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

romshark avatar May 27 '19 17:05 romshark

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.

romshark avatar May 28 '19 15:05 romshark