-
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.
29026: opt: Increase performance of small queries r=andy-kimball a=andy-kimball This PR contains two commits that increase the performance of small, simple queries: - Improve statistics building perf - Streamline join name dup detection Together, these changes result in these bench test improvements: ``` name old time/op new time/op delta Phases/kv-read/Explore 28.0µs ± 2% 26.1µs ± 3% -6.94% (p=0.008 n=5+5) Phases/planning1/Explore 10.5µs ± 3% 10.3µs ± 2% ~ (p=0.310 n=5+5) Phases/planning2/Explore 31.2µs ± 2% 30.7µs ± 3% ~ (p=0.222 n=5+5) Phases/planning3/Explore 36.2µs ± 2% 34.3µs ± 3% -5.28% (p=0.008 n=5+5) Phases/planning4/Explore 44.2µs ± 1% 41.5µs ± 2% -6.00% (p=0.008 n=5+5) Phases/planning5/Explore 35.9µs ± 1% 34.1µs ± 2% -5.10% (p=0.008 n=5+5) Phases/planning6/Explore 63.8µs ± 3% 59.3µs ± 3% -7.12% (p=0.008 n=5+5) ``` Co-authored-by: Andrew Kimball <andyk@cockroachlabs.com>
- Loading branch information
Showing
12 changed files
with
518 additions
and
237 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.