init_db.sql 437 B

12345678
  1. CREATE TABLE IF NOT EXISTS tsdb_cpp (
  2. metric_name LowCardinality(String) COMMENT 'Metric name',
  3. point_name LowCardinality(String) COMMENT 'Point name',
  4. tags Map(LowCardinality(String), LowCardinality(String)) COMMENT 'Point tags',
  5. value Float64 COMMENT 'Point value',
  6. nanoseconds Int64 COMMENT 'Point time in nanoseconds' Codec(DoubleDelta, LZ4)
  7. ) ENGINE = MergeTree()
  8. ORDER BY (metric_name, point_name, nanoseconds)