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

remove limit for druid exactify toplist query #4642

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

pjain1
Copy link
Member

@pjain1 pjain1 commented Apr 17, 2024

For druid if there are more than 5 measures in the toplist or if toplist returns results equal to the limit rows then we do a second query by adding those top values as a filter. It has been observed in past for kargo and now for automatad as well that if we remove the limit clause from this query then this is run as a groupby query (instead of topN) and it is much faster than topN. More details in an internal notion doc.

@begelundmuller begelundmuller merged commit 639b697 into main Apr 18, 2024
4 checks passed
@begelundmuller begelundmuller deleted the druid_exactify_remove_limit branch April 18, 2024 08:51
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