Skip to content

Commit 2404f1a

Browse files
committed
test
1 parent 394a80b commit 2404f1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clickhouse_db_schema/oss_ci_utilization/schema.sql

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ CREATE TABLE misc.oss_ci_utilization_metadata
2828
ENGINE = SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')
2929
PARTITION BY toYYYYMM(started_at)
3030
ORDER BY (workflow_id, job_id, started_at)
31+
-- data exists in the db for a year.
3132
-- time to live is based on created_at which is when the record is inserted in db.
3233
TTL toDate(created_at) + toIntervalYear(1)
3334
SETTINGS index_granularity = 8192
@@ -57,6 +58,7 @@ ORDER BY
5758
type,
5859
time_stamp,
5960
)
61+
-- data exists in the db for a year.
6062
-- time to live is based on created_at which is when the record is inserted in db.
6163
TTL toDate(created_at) + toIntervalYear(1)
6264
SETTINGS index_granularity = 8192

0 commit comments

Comments
 (0)