Skip to content

Commit a6feb4c

Browse files
committed
set index granularity
1 parent 5f6fd74 commit a6feb4c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/queries/0_stateless/00157_cache_dictionary.sql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ ENGINE = MergeTree
77
PARTITION BY toYYYYMM(EventDate)
88
ORDER BY (CounterID, EventDate, intHash32(UserID))
99
SAMPLE BY intHash32(UserID)
10-
SETTINGS storage_policy = 'default';
10+
SETTINGS storage_policy = 'default',
11+
-- set index_granularity correctly to avoid time out
12+
index_granularity = 8192,
13+
index_granularity_bytes = 10485760;
1114

12-
INSERT INTO test.hits_1m SELECT * FROM test.hits LIMIT 500000
15+
INSERT INTO test.hits_1m SELECT * FROM test.hits LIMIT 1000000
1316
SETTINGS min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0, max_block_size = 8192, max_insert_threads = 1, max_threads = 1, max_parallel_replicas=1;
1417

1518
CREATE DATABASE IF NOT EXISTS db_dict;

0 commit comments

Comments
 (0)