Interesting. I’m using RocksDB on exnode.
Basically to store all of exnode’s indexes, chain metadata, and transient blocks. Inside RocksDB, data is flushed into immutable .sst files divided into ~4 KiB blocks so lookups only read and decompress one block at a time, and we enable compression: :lz4 across all column families and LSM levels (auto-detected at startup, falling back to :none if the build lacks LZ4) to shrink those index blocks with minimal CPU cost, leaving only :pending’s large raw block values (>= 4 KiB) uncompressed in BlobDB .blob files since raw Bitcoin blocks compress poorly and are deleted once committed.
So far, the pros are less disk usage and I/O as well as more effective OS page cache. However, I’ve been noticing some cons: CPU overhead, more RAM usage (we keep two copies when a block is read - compressed and uncompressed) and some latency spikes with heavier codecs.
Will take a look at your code.