github-activity icon indicating copy to clipboard operation
github-activity copied to clipboard

Split into multiple requests when total number of items is > 1000

Open choldgraf opened this issue 3 years ago • 0 comments

Context

GitHub's GraphQL API will restrict any calls to 1000 total nodes. This means that a really large query (e.g. all of the history of a project) will be cut off at 1000 items.

Proposal

To get around this, we could detect when a query has > 1000 nodes, and split up the call to fetch the data into multiple queries. This is similar to how our "pagination" works, but would be across queries rather than pages of the same query. We might be able to use dates for this as an easy first step.

choldgraf avatar Jan 02 '23 12:01 choldgraf