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

Add the total number of subqueries to query statistics #5397

Merged
merged 2 commits into from
Feb 15, 2022

Conversation

cyriltovena
Copy link
Contributor

What this PR does / why we need it:

This PR adds a new statistics subqueries which contains the total amount of subqueries created to fulfil a given queries. This can be useful when debugging or when we want to know into how many subqueries a given queries has been splitted into.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

I basically used the merge function to increase the statistics, since merging is always done when doing subqueries.

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
@cyriltovena cyriltovena requested a review from a team as a code owner February 15, 2022 13:21
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@slim-bean slim-bean merged commit 9b6f17f into grafana:main Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants