2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS size_hint;
|
|
|
|
CREATE TABLE size_hint (s Array(String)) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 1000;
|
2018-11-21 03:09:56 +00:00
|
|
|
|
|
|
|
SET max_block_size = 1000;
|
|
|
|
SET max_memory_usage = 1000000000;
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO size_hint SELECT arrayMap(x -> 'Hello', range(1000)) FROM numbers(10000);
|
2018-11-21 03:09:56 +00:00
|
|
|
|
|
|
|
SET max_memory_usage = 100000000, max_threads = 2;
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT count(), sum(length(s)) FROM size_hint;
|
2018-11-21 03:09:56 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE size_hint;
|