mapdb icon indicating copy to clipboard operation
mapdb copied to clipboard

Is DB thread-safe?

Open hlms opened this issue 2 years ago • 0 comments

Hello team,

I'm passing a same DB object to multiple threads, and they all will invoke commit() methods. I hope DB object is thread-safe. Please correct me if that is NOT the case.

DB db = DBMaker.fileDB("file.db")
            .checksumHeaderBypass()
            .transactionEnable()
            .closeOnJvmShutdown()
            .make();

hlms avatar Aug 08 '23 06:08 hlms