можно, но вам не поможет. create table BX(I Int64, S String) Engine=MergeTree order by I; insert into BX select number, toString(rand()) from numbers(10000000); ALTER TABLE BX ADD INDEX idx0 S TYPE minmax GRANULARITY 10; optimize table BX final; select count() from BX prewhere S = '666'; 0 rows in set. Processed 10.00 million rows, select count() from BX prewhere S = 'A'; 0 rows in set. Elapsed: 0.001 sec.
Обсуждают сегодня