I'd like to store one billion variable-length binary objects & get them by SHA256(obj) key. The median object size is 2 kilobyte. Low read/write volumes.
What I've tried so far: NFS with the hash's first few octets as nested directory names, it works but it is a bit slow and I also tried ZeroFS (also too slow).
Under considerations: DuckDB, RocksDB, BerkeleyDB, SQLite3, lmdb, something bespoke
Recommendations? Things/papers I should be reading?