Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw-dev committed Jan 17, 2025
1 parent 3ac0af7 commit c653ada
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clickhouse_db_schema/oss_ci_utilization/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CREATE TABLE misc.oss_ci_utilization_metadata
ENGINE = SharedMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}')
PARTITION BY toYYYYMM(started_at)
ORDER BY (workflow_id, job_id, started_at)
-- data exists in the db for a year.
-- time to live is based on created_at which is when the record is inserted in db.
TTL toDate(created_at) + toIntervalYear(1)
SETTINGS index_granularity = 8192
Expand Down Expand Up @@ -57,6 +58,7 @@ ORDER BY
type,
time_stamp,
)
-- data exists in the db for a year.
-- time to live is based on created_at which is when the record is inserted in db.
TTL toDate(created_at) + toIntervalYear(1)
SETTINGS index_granularity = 8192

0 comments on commit c653ada

Please sign in to comment.