Skip to content

Conversation

@somtochiama
Copy link
Contributor

@somtochiama somtochiama commented Jan 30, 2026

CR-SQLite, like most CRDT systems, retains metadata in clock tables for each primary key even after a row has been deleted. For tables where deleted rows are never re-inserted, this metadata can accumulate unnecessarily over time.
This pull request allows users to configure specific tables and a retention period, after which metadata associated with primary keys deleted before that period can be safely removed.

The catch here is that if these keys are re-inserted before all the nodes delete associated metadata, it could lead to some inconsistencies.So only enable this for tables wheree primary keys are never re-inserted after deletion.

Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
@somtochiama somtochiama requested a review from gorbak25 January 30, 2026 11:21
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Copy link
Contributor

@gorbak25 gorbak25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please add the tripwire so the reaper doesn't linger during tests/benchmarks.

Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants