romshark / dgraph_graphql_go

A GraphQL + Dgraph + Go + HTTP based backend service demo.
MIT License
50 stars 15 forks source link

Pagination #25

Open DanielSharkov opened 5 years ago

DanielSharkov commented 5 years ago

The following plural graph endpoints are perfect candidates for pagination:

romshark commented 5 years ago

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

romshark commented 5 years ago

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.