https://slatedb.io logo
https://github.com/slatedb/slatedb/blob/
# general
s
https://github.com/slatedb/slatedb/blob/main/rfcs/0002-compaction.md#compactions Shouldn't the L0 SST provided in the example be sorted in decreasing order? In the code, the SST is flushed by appending to the front of the L0 vector in the db_state. Reference: https://github.com/slatedb/slatedb/blob/ff16fd08361883c9b3350e47f43ba283fd9c05a7/slatedb/src/mem_table_flush.rs#L130 Should the example be updated as follows:
Copy code
l0: [SST-4, SST-3, SST-2, SST-1]
compacted: [100, 50, 3, 1, 0]
c
I suppose, yes. The valid/invalid examples below it seem right (and refer to SST-1 as the oldest). But to reflect the code, probably makes sense to swap the ordering of the vec
s
Ok. I will create a PR for the fix
r
+1 thanks for fixing
s