mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
6 lines
332 B
SQL
6 lines
332 B
SQL
drop table if exists test;
|
|
create table test (id Int32, key String) engine=MergeTree() order by tuple() settings index_granularity = 8192, index_granularity_bytes = '10Mi';
|
|
insert into test select number, toString(number) from numbers(1000000);
|
|
delete from test where id % 2 = 0 SETTINGS mutations_sync=0;
|
|
select count() from test;
|