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

fix: trino metadata performance issues #3123

Merged
merged 3 commits into from
Feb 28, 2025
Merged

Conversation

Jabolol
Copy link
Contributor

@Jabolol Jabolol commented Feb 28, 2025

This PR updates the way in which we generate metadata to make it more performant. Instead of creating one table for each rendered query (timeseries/rolling/key metrics etc.), we generate one intermediate metadata table per metric factory definition (e.g. stars, commits which will later expand downstream to timeseries/rolling/key metrics stars, commits etc.). These are joined downstream on metrics_v0 joining on % + metric + %, since metrics are in the form of event_source + metric + suffix.

This will finally allow us to set metadata in the metric factory which the frontend will consume easily, for a better UX. Related to #3117.

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kariba-network ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:35pm
oso-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 7:35pm

Copy link

@oso-prs oso-prs bot left a comment

Choose a reason for hiding this comment

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

Auto-approved! please merge responsibly 😄

@Jabolol
Copy link
Contributor Author

Jabolol commented Feb 28, 2025

/test-deploy 1ee1457

@Jabolol Jabolol added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit f51a5f9 Feb 28, 2025
8 of 9 checks passed
@Jabolol Jabolol deleted the jabolol/metrics-metadata-impl branch February 28, 2025 19:50
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.

1 participant