Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76b6ee3

Browse files
committed
Improve planner's choices about when to use hashing vs sorting for DISTINCT.
The previous coding missed a bet by sometimes picking the "sorted" path from query_planner even though hashing would be preferable. To fix, we have to be willing to make the choice sooner. This contorts things a little bit, but I thought of a factorization that makes it not too awful.
1 parent cbe9d6b commit 76b6ee3

File tree

1 file changed

+160
-111
lines changed

1 file changed

+160
-111
lines changed

0 commit comments

Comments
 (0)