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

Ensure filter aggregation steps occur before sorting #34

Open
Monteth opened this issue Oct 6, 2023 · 0 comments
Open

Ensure filter aggregation steps occur before sorting #34

Monteth opened this issue Oct 6, 2023 · 0 comments

Comments

@Monteth
Copy link
Member

Monteth commented Oct 6, 2023

An optimal order of aggregation steps is to filter first and sort only the restricted amount of results.
There are two possibilities;

  • Generate an optimal solution from the beginning
  • Fix aggregation steps at the end and reorder them to use optimal order
$sort(x) + $match(y) + $sort(x) => $match(y) + $sort(x)

Codename: fixPhaseOrdering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Concept
Development

No branches or pull requests

1 participant