Skip to content

ref(mep): Some cleanup to the metric query builder#32139

Merged
wmak merged 4 commits into
masterfrom
wmak/ref/query-builder-cleanup
Mar 7, 2022
Merged

ref(mep): Some cleanup to the metric query builder#32139
wmak merged 4 commits into
masterfrom
wmak/ref/query-builder-cleanup

Conversation

@wmak

@wmak wmak commented Feb 28, 2022

Copy link
Copy Markdown
Member
  • This adds metric_id to the search conditions based on the aggregates
    added so that there's a top level filter instead of just the aggregate
    -if combinator filters. This should help with query performance
  • This also removes the combinator&merge from query construction since
    snuba can handle this for us, which makes the functions a bit cleaner

- This adds metric_id to the search conditions based on the aggregates
  added so that there's a top level filter instead of just the aggregate
  -if combinator filters. This should help with query performance
- This also removes the combinator&merge from query construction since
  snuba can handle this for us, which makes the functions a bit cleaner

@shruthilayaj shruthilayaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment about the count -> value thing but otherwise LGTM

@wmak wmak merged commit 5e1cb0e into master Mar 7, 2022
@wmak wmak deleted the wmak/ref/query-builder-cleanup branch March 7, 2022 20:52
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 23, 2022
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