mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
13 lines
459 B
SQL
13 lines
459 B
SQL
-- Tags: no-random-settings, no-parallel-replicas
|
|
|
|
SET max_bytes_before_external_group_by = 200000000;
|
|
|
|
SET max_memory_usage = 1500000000;
|
|
SET max_threads = 12;
|
|
SELECT URL, uniq(SearchPhrase) AS u FROM test.hits GROUP BY URL ORDER BY u DESC, URL LIMIT 10;
|
|
|
|
SET max_memory_usage = 300000000;
|
|
SET max_threads = 2;
|
|
SET aggregation_memory_efficient_merge_threads = 1;
|
|
SELECT URL, uniq(SearchPhrase) AS u FROM test.hits GROUP BY URL ORDER BY u DESC, URL LIMIT 10;
|