We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 394a80b commit 2404f1aCopy full SHA for 2404f1a
clickhouse_db_schema/oss_ci_utilization/schema.sql
@@ -28,6 +28,7 @@ CREATE TABLE misc.oss_ci_utilization_metadata
28
ENGINE = SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')
29
PARTITION BY toYYYYMM(started_at)
30
ORDER BY (workflow_id, job_id, started_at)
31
+-- data exists in the db for a year.
32
-- time to live is based on created_at which is when the record is inserted in db.
33
TTL toDate(created_at) + toIntervalYear(1)
34
SETTINGS index_granularity = 8192
@@ -57,6 +58,7 @@ ORDER BY
57
58
type,
59
time_stamp,
60
)
61
62
63
64
0 commit comments