A

Size: a a a
A
AZ
M
M
CREATE TABLE metrics.nginx
(
RemoteAddr String,
RemoteUser String,
TimeLocal DateTime,
Date Date DEFAULT toDate(TimeLocal),
Request String,
RequestMethod String,
Status Int32,
BytesSent Int64,
HttpReferer String,
HttpUserAgent String,
RequestTime Float32,
UpstreamConnectTime Float32,
UpstreamHeaderTime Float32,
UpstreamResponseTime Float32,
Https FixedString(2),
ConnectionsWaiting Int64,
ConnectionsActive Int64
) ENGINE = MergeTree()
ORDER BY Status
PARTITION Date
SETTINGS index_granularity=8192
M
CREATE TABLE [IF NOT EXISTS] [db.]table_name [ON CLUSTER cluster]
E
CREATE TABLE [IF NOT EXISTS] [db.]table_name [ON CLUSTER cluster]
CREATE TABLE rocket.events
(
`ticker` LowCardinality(String),
`type` LowCardinality(String),
`ts` DateTime,
`tz` LowCardinality(String),
`low` Float64,
`high` Float64,
`open` Float64,
`close` Float64,
`adj_close` Float64,
`volume` Float64,
`frequency` LowCardinality(String),
`source` LowCardinality(String),
`model_id` Int16,
`prediction_id` Int64,
`created` DateTime DEFAULT now()
)
ENGINE = ReplacingMergeTree(created)
PARTITION BY toYYYYMM(ts)
ORDER BY (toDate(ts), ticker, type, frequency, tz, model_id, prediction_id, ts)
SETTINGS index_granularity = 8192
M
CREATE TABLE rocket.events
(
`ticker` LowCardinality(String),
`type` LowCardinality(String),
`ts` DateTime,
`tz` LowCardinality(String),
`low` Float64,
`high` Float64,
`open` Float64,
`close` Float64,
`adj_close` Float64,
`volume` Float64,
`frequency` LowCardinality(String),
`source` LowCardinality(String),
`model_id` Int16,
`prediction_id` Int64,
`created` DateTime DEFAULT now()
)
ENGINE = ReplacingMergeTree(created)
PARTITION BY toYYYYMM(ts)
ORDER BY (toDate(ts), ticker, type, frequency, tz, model_id, prediction_id, ts)
SETTINGS index_granularity = 8192
DC
M
DC
DC
DC
ORDER BY Status
PARTITION Date
M
DC
PARTITION BY toYYYYMM(
Date)
ORDER BY (
Status, Date)
DC
M
M
DC
AZ
DC