tikv / rust-rocksdb

rust wrapper for rocksdb
Apache License 2.0
274 stars 157 forks source link

Does rust-rocksdb support async? #745

Open trungda opened 1 year ago

trungda commented 1 year ago

I skimmed through the example and couldn't see that async is supported. Is there a need to add async support? What about the upstream TiKV, does it not support async too? Thank you.

tabokie commented 1 year ago

What do you mean "supporting async"? AFAIK RocksDB doesn't have true async interface, and rust-rocksdb is only a binding library, it cannot and will not implement an async runtime on its own.

If you are referring to the parallal read I/O features (as in this blogpost), then it's as simple as adding a new flag to ReadOptions. We don't currently have it but you are welcome to file a PR.

trungda commented 1 year ago

If you are referring to the parallal read I/O features (as in this blogpost), then it's as simple as adding a new flag to ReadOptions. We don't currently have it but you are welcome to file a PR.

Thank you! Let me take a stab at this. Will keep this issue open to track this feature.