Skip to content

sql: TTL v1 meta issue #75428

@otan

Description

@otan

This is a meta issue for the v1 TTL meta issue.

⛔ = blocked
✔️ = in review
♻️ = in progress

Done

out of scoped

  • ttl_expiration_expression (maybe a stretch)

By February 25

  • ✔️ Plug in admission priority for DELETE. (ttljob: add row statistics #76837)
  • ✔️ implement a scan of deleted vs active rows to report as metrics: In addition to the current metrics, we need to write a loop that counts all the expired rows and existing rows in the table. For now, this will be an extra goroutine on the TTL job. This needs to be gated by a table setting and cluster setting. (in review: ttljob: add row statistics #76837)

Stability items

  • ✔️ Add telemetry (ttl: add telemetry #77108)
  • (happy for someone to take this) add validation builtins (see below); incorporate into debug doctor
  • Write some builtins which scan the descriptors and validate all tables with TTL have an associated scheduled job & scans row level TTL jobs and ensure they map to a valid table.
  • Write some builtins which can create the scheduled jobs you might expect if they don't exist.
  • Re-do performance testing of TTL

Product Questions

  • Figure out how TTL priority configuration should align with SET ADMISSION PRIORITY (i.e. using numbers versus enums)
  • figure out advice for "child" metrics (since we use aggmetric for metrics, child labels are not applied by default... see slack)
  • i'd advocate for calling row-level TTL "preview" / "experimental" for this release. should we?

Epic CRDB-10488

Jira issue: CRDB-12666

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions