I was able to do this on Linux if each process created its own directory (for example, $ HOME / .leveldb / myprogram_myPID), and then run:
ln -s -t $HOME/.leveldb/myprogram_myPID /path/to/dir/with/levelDBdatabase/* rm $HOME/.leveldb/myprogram_myPID/LOCK touch $HOME/.leveldb/myprogram_myPID/LOCK
Then $ HOME / .leveldb / myprogram_myPID can be used as a read-only database, and multiple process instances can do this simultaneously without copying the entire database.
It might be wise to use a snapshot to access the db after that, to avoid accidentally writing. Also, be sure to delete the new directory when the process is complete.
source share