-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32616: opt: add one-time cost for all operators r=RaduBerinde a=RaduBerinde Add a one-time cpuCostFactor to all operators. This reflects the time taken to set up execution for the operator, and will result in plans with fewer operators all else being equal (e.g. when the estimated row count is 0). Informs #32578. Release note: None Note: while this fixes the specific issue mentioned and seems like a reasonable idea on its own, I think having row count = 0 is also problematic because everything above that operator won't be optimized properly. 0 should be reserved for the case where we know for sure there are 0 rows. I don't know how to make that happen without making the "count" something more complicated (e.g. a count + a variance, or a confidence interval). Co-authored-by: Radu Berinde <[email protected]>
- Loading branch information
Showing
25 changed files
with
611 additions
and
611 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
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.