Congyuwang / RocksDict

Python fast on-disk dictionary / RocksDB & SpeeDB Python binding
https://congyuwang.github.io/RocksDict/rocksdict.html
MIT License
176 stars 8 forks source link

Support Speedb #71

Closed eladn closed 1 year ago

eladn commented 1 year ago

Speedb is a drop-in replacement for RocksDB. That is, it supports the exact same interface. Unfortunately, it doesn't have python wrapper. Could we optionally use RocksDict with speedb instead of rocksdb?

Congyuwang commented 1 year ago

Currently speedb does not yet have a rust wrapper like rust-rocksdb. But this is a very good recommendation, to support two different backends. There is a public rust-speedb GitHub repo, but it is not yet developed. I'll see if I can first make a rust wrapper before using pyo3 to bring it to python.

Congyuwang commented 1 year ago

Done!

Truly drop-in replacement (minor changes).

See Release speedict-v0.3.11 and pypi speedict, and try pip install speedict

eladn commented 1 year ago

Wow that was a super rapid implementation! Thanks for the ultra helpful response.