-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(dynamic-sampling):remove deleted projects from rebalancing #85443
fix(dynamic-sampling):remove deleted projects from rebalancing #85443
Conversation
shellmayr
commented
Feb 19, 2025
- Closes https://github.com/getsentry/projects/issues/674
project_ids = list( | ||
Project.objects.filter(organization_id__in=org_ids, status=ObjectStatus.ACTIVE).values_list( | ||
"id", flat=True | ||
) | ||
) |
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.
This should be limited to 100 orgs, but can still be quite a large qeury (and the list of projects will be comparably large as well). Unsure if we need a faster / more efficient approach here
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.
True, but it looks to me that there is not much it can be done inside of this function to optimize it. If this turns out to be too slow, we can lower the limit to do the filtering for less orgs
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |