forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Improvement](sort) add session variable force_sort_algorithm and adj…
…ust some parameter about sort (apache#39334) 1. add force_sort_algorithm to set sort algorithm 2. do not use partitial sort on column string ```sql select count(*) from (select lo_orderpriority from lineorder order by lo_orderpriority limit 100000)t; partition sort: 22s pdq sort: 8s ``` 4. enlarge topn_opt_limit_threshold to 10240000 ```sql select count(*) from (select * from lineorder order by lo_linenumber limit 100000)t; heap 1s set topn_opt_limit_threshold=10240000; heap 0.4s select count(*) from (select * from lineorder order by lo_linenumber limit 10000000)t; heap 13s set topn_opt_limit_threshold=10240000; heap 12s select count(*) from (select * from lineorder order by lo_linenumber limit 100000000)t; heap 2min13s set topn_opt_limit_threshold=102400000; heap 2 min 22.56 sec select count(*) from (select lo_orderpriority from lineorder order by lo_orderpriority limit 100000)t; heap 2.4s set topn_opt_limit_threshold=102400000; heap 1s select count(*) from (select lo_orderpriority from lineorder order by lo_orderpriority limit 10000000)t; heap 21s set topn_opt_limit_threshold=102400000; heap 20s ```
- Loading branch information
1 parent
7a09202
commit 7372c99
Showing
3 changed files
with
31 additions
and
23 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