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

chore(weave): Add a fast path for simple queries #1716

Merged
merged 9 commits into from
Jun 4, 2024

Conversation

tssweeney
Copy link
Collaborator

@tssweeney tssweeney commented Jun 4, 2024

Builds off of #1715 ... another step in making queries faster! In this PR, we take advantage of the case where there are no group-by conditions. In such cases we can push the sort/limit down into an inner-clause.

This PR does 1 thing:

  1. Under the condition that there are 0 having_conditions and we only need to sort based on data in 1 event type or the other (start or end), then we can use a fast path that pushes the sort condition down to the inner clause, avoiding extra aggregations!

@circle-job-mirror
Copy link

circle-job-mirror bot commented Jun 4, 2024

@circle-job-mirror
Copy link

3 similar comments
@circle-job-mirror
Copy link

@circle-job-mirror
Copy link

@circle-job-mirror
Copy link

@circle-job-mirror
Copy link

@tssweeney tssweeney changed the base branch from master to tim/add_project_id_to_inner_conditions June 4, 2024 01:15
Base automatically changed from tim/add_project_id_to_inner_conditions to master June 4, 2024 01:43
@tssweeney tssweeney requested a review from shawnlewis June 4, 2024 01:48
@tssweeney tssweeney marked this pull request as ready for review June 4, 2024 01:48
@tssweeney tssweeney requested a review from a team as a code owner June 4, 2024 01:48
@tssweeney tssweeney merged commit 38a72e4 into master Jun 4, 2024
25 checks passed
@tssweeney tssweeney deleted the tim/add_a_fast_path_to_queries branch June 4, 2024 03:25
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2024
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