https://slatedb.io logo
@flaneur233 how do you plan to update
# general
c
@flaneur233 how do you plan to update
retention_min_seq
? Suppose we have a time travel of 6 hours. We'll need to keep the seqnum for 6h ago, but that number is always rolling forward. That's why @Rohan propsoed the ring buffer. Are you planning to keep the ring buffer in memory? If so, how do you handle the ring buffer on startup?
f
retention_min_seq
does not have time travel considered into it yet, it's only focus on keeping the living snapshots' data not get recycled during compaction. it simply tracks the living snapshots' begin seqs, and pick a min to be flushed to manifest 😯 . i think it might be good to have a standalone solution for time travel, which we'd like to track a mapping between system time and seq. it's not included in the scope for the snapshot retention at the moment imo.
c
ahhh right
Sorry got confused
Ok that makes sense
f
they're kinda related (both are a kind of retention policy), but for keeping living snapshots safe, it can has a simpler solution 😁
c
yea
f
the memory foot print will not be very high i think, each living snapshot tracks a u64 in memory 😆
c
Yea... cognitive memory footprint is a different story for me 😛
K, gotta grab a ☕ with a friend. I'll be back in a couple hours 🙂
Left a comment
f
enjoy your time!
c
🚲 🛖
It's rather unfortunate that "coff" autocompletes to "coffin" 🙂
"Grabbing a ⚰️ " doens't sound quite so nice 😛
f
autocompletes should have an LLM built in 🤣