Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1723

Evaluate GitHub GraphQL for combining queries

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • bots
    • None

      In the hunt for bot performance, I think we should evaluate if GitHub's GraphQL could be leveraged to combine common queries into fewer calls. I think specifically we could fetch a pull request with all comments, reviews and review comments in one call. This is a pretty common combination of data to be needed by WorkItems.

      What we need to check is at least:

      1. Can we make it work?
      2. Does it improve performance?
      3. Can we fit this query model within the resource limits of GitHub?

      The GraphQL API has a different way of tracking resource limits, so we will need to make sure our usage still fits within those limits for our usecases. Related to this is the 1 second delay we are incurring between all non GET calls to GitHub, which may or may not be needed for GraphQL POST calls.

            Unassigned Unassigned
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: