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

opt,sql: use paired-joins with non-covering indexes for left joins #58261

Merged
merged 1 commit into from
Feb 2, 2022

Commits on Feb 2, 2022

  1. opt,sql: use paired-joins with non-covering indexes for left joins

    This is done when the left outer/semi/anti join can use a
    lookup join. Prior to this, when the non-covering index
    could not fully evaluate the filter for left join we could
    not generate a lookup join.
    
    With this change:
    - Left outer join becomes a pair of two left outer joins.
    - Left semi join is a pair of inner join followed by left
      semi join.
    - Left anti join is a pair of left outer join followed by
      left anti join.
    
    Informs cockroachdb#55452
    
    Release note (performance improvement): The optimizer can now
    generate lookup joins in certain cases for non-covering
    indexes, when performing a left outer/semi/anti join.
    sumeerbhola authored and rytaft committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    cc07c86 View commit details
    Browse the repository at this point in the history