mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
Lower memory usage in tests #10277
This commit is contained in:
parent
ed46b98dc4
commit
c15fe728fd
@ -1,3 +1,3 @@
|
|||||||
-- serialization of big arrays shouldn't use too much memory
|
-- serialization of big arrays shouldn't use too much memory
|
||||||
set max_memory_usage = 3000000000;
|
set max_memory_usage = 300000000;
|
||||||
select ignore(x) from (select groupArray(number) x from numbers(33554433)) group by x format Null;
|
select ignore(x) from (select groupArray(number) x from numbers(3355443)) group by x format Null;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
DROP TABLE IF EXISTS test.avro;
|
DROP TABLE IF EXISTS test.avro;
|
||||||
|
|
||||||
|
SET max_threads = 1, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage
|
||||||
|
|
||||||
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
|
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
|
||||||
INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user