2023-02-03 13:34:18 +00:00
|
|
|
-- Tags: no-random-settings, no-parallel-replicas
|
2022-03-01 11:35:17 +00:00
|
|
|
|
2018-08-07 17:10:03 +00:00
|
|
|
SET max_bytes_before_external_group_by = 200000000;
|
|
|
|
|
2019-11-06 18:11:06 +00:00
|
|
|
SET max_memory_usage = 1500000000;
|
2018-08-07 17:10:03 +00:00
|
|
|
SET max_threads = 12;
|
2018-08-07 17:08:51 +00:00
|
|
|
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;
|
2018-08-07 17:10:03 +00:00
|
|
|
SET aggregation_memory_efficient_merge_threads = 1;
|
2018-08-07 17:08:51 +00:00
|
|
|
SELECT URL, uniq(SearchPhrase) AS u FROM test.hits GROUP BY URL ORDER BY u DESC, URL LIMIT 10;
|