electrs
electrs copied to clipboard
Replace RocksDB with sled
AFAIK sled
is worse than rocksdb, so it should be compile-time selectable, ideally using Clean Architecture.
@Kixunil I'm working on making both implement a trait. Should I convert this PR to a draft one?
@KhaledEmaraDev I think it's a good idea
@KhaledEmaraDev Thanks for opening this PR! Could you please adapt it to support both DBs, and attach the sled performance metrics - to allow comparing it to RocksDB? Also, please fix the tests.
@romanz working on it.
We should also consider https://github.com/cberner/redb, following https://github.com/romanz/electrs/issues/753.
@romanz Will work on including it.
btw, the author of redb just added benchmarks vs rocksdb, and it looks like it's way faster: https://github.com/cberner/redb#benchmarks
Wow, that looks great! Add some RPC optimizations and we may finally fix perf issues.
This is replaced by #765.