Powered by
https://github.com/slatedb/slatedb/blob/
# general
s
Sujeet
08/27/2025, 9:45 AM
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
criccomini
08/27/2025, 3:48 PM
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
Sujeet
08/27/2025, 4:26 PM
Ok. I will create a PR for the fix
r
Rohan
08/28/2025, 4:36 AM
+1 thanks for fixing
s
Sujeet
08/28/2025, 4:38 AM
@Rohan
https://github.com/slatedb/slatedb/pull/830/files
Can you take a look?
Previous
Next