M
v20.3.12.112-stable
где задается JEMALLOC_OPT_SAFETY_CHECKS? через env?
Size: a a a
M
ИИ
autopurge.snapRetainCount=10
autopurge.purgeInteval=1
DC
M
DC
autopurge.snapRetainCount=10
autopurge.purgeInteval=1
ИИ
zkCleanup.sh
?DC
zkCleanup.sh
?ИИ
DC
ED
SELECT get_time, value
FROM `table`
PREWHERE(source_id, get_time) IN
(
SELECT source_id, max(get_time) FROM `table`
PREWHERE source_id=333415 AND get_time<='2020-06-26 09:00:00'
GROUP BY source_id
UNION ALL
SELECT source_id, min(get_time) FROM `table`
PREWHERE source_id=333415 AND get_time>'2020-06-26 09:00:00'
GROUP BY source_id
)
CREATE TABLE `table` (
`source_id` UInt32,
`get_time` DateTime ,
`value` Float64
) ENGINE = MergeTree()
PARTITION BY toYYYYMM(get_time)
ORDER BY (source_id,get_time)
DC
SELECT get_time, value
FROM `table`
PREWHERE(source_id, get_time) IN
(
SELECT source_id, max(get_time) FROM `table`
PREWHERE source_id=333415 AND get_time<='2020-06-26 09:00:00'
GROUP BY source_id
UNION ALL
SELECT source_id, min(get_time) FROM `table`
PREWHERE source_id=333415 AND get_time>'2020-06-26 09:00:00'
GROUP BY source_id
)
CREATE TABLE `table` (
`source_id` UInt32,
`get_time` DateTime ,
`value` Float64
) ENGINE = MergeTree()
PARTITION BY toYYYYMM(get_time)
ORDER BY (source_id,get_time)
SELECT source_id, max(get_time) FROM table -
- КХ не умеет max
брать из индекса, если вы на это рассчитывали. Ну индекс sparsed поэтому ... .ааааRO
RO
DC
ED
SELECT source_id, max(get_time) FROM table -
- КХ не умеет max
брать из индекса, если вы на это рассчитывали. Ну индекс sparsed поэтому ... .ааааDC
table
DC
DC
RO
K