cberner / redb

An embedded key-value database in pure Rust
https://www.redb.org
Apache License 2.0
3.07k stars 137 forks source link

open the same db in read only mode #811

Open GopherJ opened 2 months ago

GopherJ commented 2 months ago

Error: Database already open. Cannot acquire lock.

I have one process which does read & write, another process which does read

GopherJ commented 2 months ago

rocksdb allows to open in readonly mode

lhallam commented 2 months ago

See #678

GopherJ commented 1 month ago

rocksdb read only mode cannot sync with the write, secondary db instance doesn't work well either, if we cannot find a very useful and elegant solution, then I think we can abandon this

the whole point is to have 1 R/W + n R instances and the n read instances can sync well with the write