-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: implement sql stats compaction for clean up job #69302
Copy link
Copy link
Closed
Labels
A-sql-observabilityRelated to observability of the SQL layerRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)X-staleno-issue-activity
Description
Currently, SQL Stats clean up job implements a very simple heuristics that deletes the rows with oldest aggregated_ts.
We would want to eventually implement compaction of the older rows by merging multiple rows into a single row. This means we can store more data for longer duration.
Jira issue: CRDB-9536
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-observabilityRelated to observability of the SQL layerRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)X-staleno-issue-activity