Skip to content

Commit

Permalink
Pull request #30: Enable tombestone purge on TSDB data tables
Browse files Browse the repository at this point in the history
Merge in PRODUCT/squirreldb from PRODUCT-1981-squirreldb-ttl-does-not-work-as-expected to master

* commit '4b21e61e35a673b92bf86a17eaabe19f34b0be71':
  Enable tombestone purge on TSDB data tables
  • Loading branch information
PierreF committed Sep 20, 2022
2 parents 6b56c06 + 4b21e61 commit a06a3f4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cassandra/tsdb/tsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ func dataTableCreateQuery(session *gocql.Session, defaultTimeToLive time.Duratio
AND COMPACTION = {
'class': 'TimeWindowCompactionStrategy',
'compaction_window_unit': 'DAYS',
'compaction_window_size': 6
'compaction_window_size': 6,
'tombstone_threshold': 0.2,
'unchecked_tombstone_compaction': true,
'tombstone_compaction_interval': 604800
}
AND DEFAULT_TIME_TO_LIVE = $DEFAULT_TIME_TO_LIVE
`))
Expand All @@ -217,7 +220,10 @@ func aggregateDataTableCreateQuery(session *gocql.Session, defaultTimeToLive tim
AND COMPACTION = {
'class': 'TimeWindowCompactionStrategy',
'compaction_window_unit': 'DAYS',
'compaction_window_size': 90
'compaction_window_size': 90,
'tombstone_threshold': 0.2,
'unchecked_tombstone_compaction': true,
'tombstone_compaction_interval': 8467200
}
AND DEFAULT_TIME_TO_LIVE = $DEFAULT_TIME_TO_LIVE
`))
Expand Down

0 comments on commit a06a3f4

Please sign in to comment.