Share DB instance or lots of separate DB instances?

34 views
Skip to first unread message

Dan Gravell

unread,
Aug 22, 2017, 10:47:00 AM8/22/17
to MapDB
In a case where you have MapDB being used by a stand-alone application, within one JVM, is it best to:

... have one global DB instance from which different parts of the app use to create their BTrees/HTrees etc
... have multiple DBs (and multiple files), one for each part of the application

I'm guessing the answer is "it depends". I just noticed there is some scope for sharing resource, e.g. the GC thread is created once per DB.

Dan
Reply all
Reply to author
Forward
0 new messages