https://slatedb.io logo
https://github.com/slatedb/slatedb/blob/main/src/s...
# general
a
https://github.com/slatedb/slatedb/blob/main/src/size_tiered_compaction.rs#L210 Question: we compact L0 to a new sorted run currently, I want to know if we treat the newly generated sorted run as the last sorted run when
srs.first
is None? (assuming that all checks pass)
r
yeah that's right - if there are no SRs when we compact L0 then the resulting SR is the last sorted run.
a
https://github.com/slatedb/slatedb/blob/main/src/compaction_execute_bench.rs#L231 https://github.com/slatedb/slatedb/blob/main/src/compaction_execute_bench.rs#L256 dest in both functions is 0, do we regard it as last sorted run? After solving this problem, I think I can submit the PR of #285 as long as I add some unit tests.
r
I think for
compaction_execute_bench
it would make sense to add a a parameter that specifies whether or not to include bloom filters. The intent of this program is to benchmark the compaction executor, so it would be useful to be able to see what the difference is when including or excluding filters.
a
In fact, I don’t use it to determine bloom, but to determine whether tomstones need to be filtered out.
r
gah total brain fart on my end. I've had almost the same discussion with someone who was working on excluding filters from the last sorted run. I feel like the same logic applies though - it's just something we can pass as a parameter to the bencher