I'm trying to use the with_ttl option to automatically delete older records. #57
-
After inserting a record, waiting for the desired ttl seconds, the record still exists. |
Beta Was this translation helpful? Give feedback.
Answered by
Congyuwang
Mar 23, 2023
Replies: 1 comment 1 reply
-
Hi, surprise to me as well. See this link: https://github.com/facebook/rocksdb/wiki/Time-to-Live It appears that ttl in rocksdb means it will at least live that long. and the value is deleted only during compaction. So expired value may get deleted in the process when more values inserted during compaction. From RocksDB
Some warnings:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Congyuwang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, surprise to me as well. See this link: https://github.com/facebook/rocksdb/wiki/Time-to-Live
It appears that ttl in rocksdb means it will at least live that long. and the value is deleted only during compaction. So expired value may get deleted in the process when more values inserted during compaction.
From RocksDB
Some warnings: