-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42718: opt: push Limit through Left Joins r=RaduBerinde a=RaduBerinde If we limit the results of a left join, we can also limit the join's left input (because each left row generates at least one output row). This is useful with a common pattern of queries where we have a "core" query followed by a series of left joins that populate the rows with extra information. Release note (performance improvement): we generate better plans in many cases where the query has LEFT / RIGHT JOINs and also has LIMIT. Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
- Loading branch information
Showing
3 changed files
with
737 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.