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

Runtime: Parallelize validation of metrics view dimensions and measures #4525

Merged
merged 4 commits into from
Apr 9, 2024

Conversation

begelundmuller
Copy link
Contributor

For dashboards with many dimensions and measures, validating one-by-one can be very slow. This PR uses an errgroup to run validations concurrently. It applies a limit of 10 concurrent validations to avoid flooding the database with requests.

@begelundmuller begelundmuller self-assigned this Apr 5, 2024
@begelundmuller begelundmuller merged commit 154922d into main Apr 9, 2024
4 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/concurrent-metrics-validation branch April 9, 2024 12:29
AdityaHegde pushed a commit that referenced this pull request Apr 9, 2024
…es (#4525)

* Runtime: Parallelize validation of metrics view dimensions and measures

* Use a const

* Make test deterministic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants