mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
faee95b897
We have special optimizations for multiple column ORDER BY: https://github.com/ClickHouse/ClickHouse/pull/10831 . It's beneficial to also apply to tuple columns. Before: select * from numbers(300000000) order by (1 - number , number + 1 , number) limit 10; 2.613 sec. After: select * from numbers(300000000) order by (1 - number , number + 1 , number) limit 10; 0.755 sec No tuple: select * from numbers(300000000) order by 1 - number , number + 1 , number limit 10; 0.755 sec
9 lines
202 B
XML
9 lines
202 B
XML
<test>
|
|
<tags>
|
|
<tag>sorting</tag>
|
|
<tag>comparison</tag>
|
|
</tags>
|
|
|
|
<query>select * from numbers(300000000) order by (1 - number , number + 1 , number) limit 10;</query>
|
|
</test>
|