paypal / junodb

JunoDB is PayPal's home-grown secure, consistent and highly available key-value store providing low, single digit millisecond, latency at any scale.
Apache License 2.0
2.56k stars 163 forks source link

Question: if rocksdb as storage, ttl data is removed or just marked as deleted #141

Closed ben1009 closed 1 year ago

ben1009 commented 1 year ago

As the title, if choose rocksdb as storage. If ttl meets, the data will be removed from the db or just leave a deleted tombstone, will be removed later by full tree compaction, thanks.

NeetishPathak commented 1 year ago

All expired keys are removed during compaction.

ben1009 commented 1 year ago

All expired keys are removed during compaction.

So when ttl meet, the disk space will not be reclaimed

NeetishPathak commented 1 year ago

Correct, it will not be reclaimed by default. Current solution depends on auto compaction to clean up and reclaim that space.