This is an interesting one:
https://github.com/slatedb/slatedb/issues/905
I feel like there's probably some neat data structure that could keep accurate counts that include deletions/merges... 🤔
a
almog
09/18/2025, 7:02 PM
feels impossible to me without keeping the full set of keys... you'd also need to know which keys were overwritten as well
c
criccomini
09/18/2025, 10:27 PM
Yea
criccomini
09/18/2025, 10:27 PM
RocksDB has an "estimated" count
a
almog
09/18/2025, 11:51 PM
yeah there are some good probabilistic COUNT DISTINCT data structure we could use
almog
09/18/2025, 11:52 PM
like theta sketches or what not
c
criccomini
09/19/2025, 1:27 AM
Ya.. TBH I’m inclined to leave the feature out for now… doesn’t seem worth it