Badger: Can badger open database in readonly mode without locking?

Created on 20 Dec 2017  路  4Comments  路  Source: dgraph-io/badger

Is it possible to add option to open database in readonly mode which no need to lock the database? It could share the database between different read only processes?

kinenhancement prioritP3 statuneeds-attention

Most helpful comment

The PR which adds this functionality is merged.

All 4 comments

I don鈥檛 believe this is possible without a major design change, that will affect multiple layers in the code. So I am not sure if this is something we will look into actively.

I just did a blocking test and seems badger does not block readers and writers so you could utilize multiple readers and to avoid writes, add api layer on top of badger.

This can be done -- would essentially need to avoid doing the lock on DB, and modify the scope of APIs a bit. I don't know how much demand is there for this feature. If we get 5-10 thumbs-up on the top post, we can build this.

The PR which adds this functionality is merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qweawdqq picture qweawdqq  路  3Comments

dopey picture dopey  路  3Comments

whyrusleeping picture whyrusleeping  路  8Comments

tonyalaribe picture tonyalaribe  路  8Comments

Stebalien picture Stebalien  路  5Comments