mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
e1898ca89a
Scenarios that use Arena::allocContinue may waste quadratically many memory and perform quadratically many copying, when the memory range size reaches Arena's linear allocation threshold. To alleviate this, make sure that the next memory chunk allocated by allocContinue is at least linear_growth_threshold bytes bigger than the previous one, so that we don't reallocate and copy that often.
4 lines
195 B
SQL
4 lines
195 B
SQL
-- serialization of big arrays shouldn't use too much memory
|
|
set max_memory_usage = 3000000000;
|
|
select ignore(x) from (select groupArray(number) x from numbers(33554433)) group by x format Null;
|