馃帀 Source Github: re-implement PullRequestCommentReactions
stream using GraphQL API
#14408
Labels
PullRequestCommentReactions
stream using GraphQL API
#14408
Problem
Source GitHub
Reactions
streams are still not very fast because they nested and require a lot of HTTP requeststo sync all data.
For example to sync stream:
pull_request_comment_reactions
we need to iterate over commentsand for every comment make separate HTTP request to get a list of reaction for specific comment.
It requires a lot of HTTP requests - it's slow
Solution
One solution we can use is to re-implement REST API -> GraphQL API.
It allows to reduce number of HTTP requests.
One GraphQL API HTTP request can fetch a lot of reactions for a lot of comments.
We can re-implement all Reactions streams using GraphQL API to improve sync performance.
GraphQL API still not silver bullet: it reduce number of HTTP requests but it's CPU intensive
and GitHub count total cost of such GraphQL requests. If you spend all hourly costs you need to wait.
The text was updated successfully, but these errors were encountered: