Skip to content
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

perf(issue_alerts): Process issue alert filters before conditions #29367

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

wedamija
Copy link
Member

@wedamija wedamija commented Oct 15, 2021

We've seen that some large customers set up many very similar alert rules. These rules tend to
contain a match on a specific tag to filter the alert to go to a specific team.

It makes sense to run these cheap filters first so that we exit early, before performing more
expensive snuba queries. Even though the queries are cached, we still spend a long time fetching
values from the cache, so this can cause pipeline processing issues.

Also refactored a bit to remove some duplication, since conditions and filters are handled in the
same way

Refs #WOR-1296

We've seen that some large customers set up many very similar alert rules. These rules tend to
contain a match on a specific tag to filter the alert to go to a specific team.

It makes sense to run these cheap filters first so that we exit early, before performing more
expensive snuba queries. Even though the queries are cached, we still spend a long time fetching
values from the cache, so this can cause pipeline processing issues.

Refs #WOR-1296
@wedamija wedamija requested review from ahmedetefy and a team October 15, 2021 23:36
@wedamija wedamija merged commit dd1aa28 into master Oct 18, 2021
@wedamija wedamija deleted the danf/issue_alerts_process_filters_first branch October 18, 2021 20:30
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants