ClickHouse/tests/queries/1_stateful/00162_mmap_compression_none.sql
2023-08-13 23:09:17 +02:00

9 lines
338 B
SQL

DROP TABLE IF EXISTS hits_none;
CREATE TABLE hits_none (Title String CODEC(NONE)) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi';
INSERT INTO hits_none SELECT Title FROM test.hits;
SET min_bytes_to_use_mmap_io = 1;
SELECT sum(length(Title)) FROM hits_none;
DROP TABLE hits_none;