@tbg on 2023-04-10:
Re-using this issue to focus exclusively on SingleDelete for the raft log, see #8979 (comment).
On #4321, @Simkha mentioned SingleDelete and its handling in compactions:
The following link points to a comment in CompactionIterator::NextFromInput(), the comment explains when presence of SingleDelete would compact out (i.e. clear) the stored key and the SingleDelete record. This iterator is used during meltable flush.
https://github.com/facebook/rocksdb/blob/2fc2fd92a94dba8fbad5679fce4522c4769aab27/db/compaction_iterator.cc#L227-L260
If you can adapt your code to meet the restrictions of SingleDelete, then I think, it could be useful.
https://github.com/facebook/rocksdb/wiki/Single-Delete
Jira issue: CRDB-6156
@tbg on 2023-04-10:
Re-using this issue to focus exclusively on SingleDelete for the raft log, see #8979 (comment).
On #4321, @Simkha mentioned
SingleDeleteand its handling in compactions:Jira issue: CRDB-6156