Skip to content

Reduce GitHub API calls - batch queries 7 reduce fetches#30

Draft
evwilkin wants to merge 1 commit intorh-uxd:mainfrom
evwilkin:perf/batch-github-api-calls
Draft

Reduce GitHub API calls - batch queries 7 reduce fetches#30
evwilkin wants to merge 1 commit intorh-uxd:mainfrom
evwilkin:perf/batch-github-api-calls

Conversation

@evwilkin
Copy link
Contributor

  • Remove redundant REST issues.get calls in closeGitHubIssueIfJiraClosed and reopenGitHubIssueIfJiraReopened by using existing GraphQL data
  • Combine title + description updates into a single REST call via new syncTitleAndDescriptionToGitHub function
  • Batch GET_ISSUE_DETAILS queries in syncUpdatedJiraIssuesToGitHub using GraphQL aliases (groups of 20)
  • Add shortDelay (250ms) for read-only API calls, keeping full delay (1000ms) for writes

…undant REST fetches

- Remove redundant REST issues.get calls in closeGitHubIssueIfJiraClosed and reopenGitHubIssueIfJiraReopened by using existing GraphQL data
- Combine title + description updates into a single REST call via new syncTitleAndDescriptionToGitHub function
- Batch GET_ISSUE_DETAILS queries in syncUpdatedJiraIssuesToGitHub using GraphQL aliases (groups of 20)
- Add shortDelay (250ms) for read-only API calls, keeping full delay (1000ms) for writes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant