Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open DB in read-only mode #213

Closed
eupn opened this issue Oct 24, 2018 · 6 comments
Closed

Open DB in read-only mode #213

eupn opened this issue Oct 24, 2018 · 6 comments
Assignees

Comments

@eupn
Copy link
Contributor

eupn commented Oct 24, 2018

It would be nice to add possibility to open DB in read-only mode, eg. at least for:

  • Reading DB from multiple processes
  • Create checkpoints of DB which is currently used by other process

This is supported by RocksDB, the only thing needed is to add FFI bindings and open_readonly method to DB structure.

@iSynaptic iSynaptic self-assigned this Feb 24, 2019
@iSynaptic
Copy link
Member

@eupn I've just pushed the beginnings of ReadOnlyDB into #268. Right now all it supports is get_* operations, but it will soon support the other read operations.

@iSynaptic
Copy link
Member

@eupn Here is one of the first tests for ReadOnlyDB.

rnarubin added a commit to Standard-Cognition/rust-rocksdb that referenced this issue May 8, 2019
This patch is not meant for submitting upstream, there is a more robust
solution on the way rust-rocksdb#213
schmidek pushed a commit to schmidek/rust-rocksdb that referenced this issue Aug 1, 2019
This patch is not meant for submitting upstream, there is a more robust
solution on the way rust-rocksdb#213
@eupn eupn closed this as completed Sep 18, 2019
rnarubin added a commit to Standard-Cognition/rust-rocksdb that referenced this issue Nov 14, 2019
This patch is not meant for submitting upstream, there is a more robust
solution on the way rust-rocksdb#213
@ansjsun
Copy link

ansjsun commented Mar 9, 2020

@iSynaptic I can not found ReadOnlyDB in master branch .

@m1sterc001guy
Copy link

m1sterc001guy commented Oct 24, 2022

Is there any update on this? It looks like eupn closed the issue when they merged a patch into a private branch, not the upstream branch. Does rust rocksdb support multiple processes reading from the same db (one in read-only mode) or is that not currently supported?

@eupn eupn reopened this Oct 24, 2022
@zdila
Copy link

zdila commented Jan 15, 2024

Any update on this?

@zdila
Copy link

zdila commented Mar 14, 2024

Actually it seems to be already implemented:

DB::open_for_read_only(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants