-
-
Notifications
You must be signed in to change notification settings - Fork 202
Perf: Refactor Updater to use Lightweight Contribution Counters #9063
Copy link
Copy link
Closed
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations
Description
The current Updater fetches contributionCalendar { totalContributions } for every year of a user's history. This forces GitHub to compute the daily contribution graph, leading to frequent 502 Bad Gateway errors and slow performance.
Optimization:
Replace contributionCalendar with the lightweight aggregated counters available directly on contributionsCollection:
totalCommitContributionstotalIssueContributionstotalPullRequestContributionstotalPullRequestReviewContributionsrestrictedContributionsCount(optional check)
Logic:
Yearly Total = Sum(Counters)
Benefits:
- Stability: Drastically reduces load on GitHub's GraphQL API, eliminating 502 errors.
- Performance: Significantly faster data fetching.
- Future-Proofing: Opens the door to tracking "Commits vs. Total" metrics separately in the future.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations