This commit is contained in:
mila 2026-06-04 22:08:00 +02:00
parent 4491da7a0f
commit c4f9e94cca

14
docs/CLICKHOUSE.md Normal file
View file

@ -0,0 +1,14 @@
# example create tabe DDL
CREATE TABLE default.watch_your_lan(
ts DateTime64(3, 'UTC'),
ip IPv4,
iface LowCardinality(String),
name LowCardinality(String),
mac FixedString(17),
known UInt8
)
ENGINE = MergeTree
PARTITION BY toYYYYMM(ts)
ORDER BY (ts, ip)
SETTINGS index_granularity = 8192;