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

SQL: Optimizations #1915

Open
joshua-spacetime opened this issue Oct 28, 2024 · 0 comments
Open

SQL: Optimizations #1915

joshua-spacetime opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@joshua-spacetime
Copy link
Collaborator

joshua-spacetime commented Oct 28, 2024

We will implement the following rule-based optimizations:

  1. Filter pushdown
    In particular pushing filters below joins. In the logical plan, WHERE conditions follow joins and will need to be pushed below the join in order to perform index selection.

  2. Join selection
    In the logical plan, joins are n-ary and are initially translated as cross joins. We need to optimize them as index joins if possible.

  3. Table scan + filter -> index scan
    After pushing down filters, we need to generate applicable index scans.

  4. Project pull up
    For both sql and subscriptions, the logical plan may have intermediate projections, but these can either be removed entirely, as is the case for subscriptions, or pulled up to the root of the query plan, as is the case for sql, to avoid materializing product values.

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

No branches or pull requests

2 participants