-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(github-invite): improve performance of missing members API #56477
fix(github-invite): improve performance of missing members API #56477
Conversation
Codecov Report
@@ Coverage Diff @@
## master #56477 +/- ##
==========================================
- Coverage 78.64% 78.64% -0.01%
==========================================
Files 5078 5078
Lines 218272 218260 -12
Branches 36952 36949 -3
==========================================
- Hits 171670 171650 -20
- Misses 41064 41070 +6
- Partials 5538 5540 +2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Does separating the query out really make it faster?
Maybe you can prefetch the fk'd table?
I think the |
@evanpurkhiser @nhsiehgit i edited the description so nathan was right to ask. looking into prefetching now |
Oh, the query did actually change, the code wasn't just split out 👍 |
Oh could you share the sentry performance metrics here as well? |
@evanpurkhiser i don't think there are performance metrics because the API call times out? this is the issue SENTRY-14QD |
It doesn't always though right? I think there should be a transaction for this endpoint right? |
@evanpurkhiser failure rate 19% here |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
For orgs with many commit authors that are not members of their organization, the missing members API is timing out because there are too many commit authors to serialize (SENTRY-14QD).
We should limit the number of missing members to the 50 most active missing members. I also pulled out an inner join into its own query so it's more readable.