Readonly DB and garbage collector

(Vinod Gupta) #1

Hi, I have few questions on Badger which is not clear from the docs.

I have one process which opens badger db /tmp/badgerdb and doing reads and writes. I want to run another process to open the same db for read only to analyze the DB? Is it possible?
Do we have a way of dumping all the keys from the database?
How can I connect to database from remote to analyze the database table?
Do I need to run ValueLogGC periodically or it is done automatically once in a while?

(Ashish) #2

Please find the reply in TTL does not work on keys if I don't call db.Close() thread.