You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be perfect if LMDB supports on-demand opening and closing: automatically opening when the database is accessed and automatically closing when it is not in use.
The text was updated successfully, but these errors were encountered:
It actually already does this, automatically closing the DB on destruction in GC.
I am not sure if that aligns with what you mean by "accessed" and "not in use" though. I'm guessing you actually also want to have an API/function that can retrieve any currently-open db, if it exists, through a weak reference (that allows collection if "not in use"), and opening one otherwise (this can be done with a weakly-valued map).
It will be perfect if LMDB supports on-demand opening and closing: automatically opening when the database is accessed and automatically closing when it is not in use.
The text was updated successfully, but these errors were encountered: