rust-rocksdb icon indicating copy to clipboard operation
rust-rocksdb copied to clipboard

Does rust-rocksdb support async?

Open trungda opened this issue 2 years ago • 2 comments

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.

trungda avatar May 21 '23 23:05 trungda

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.

tabokie avatar May 22 '23 06:05 tabokie

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.

trungda avatar May 22 '23 16:05 trungda