-
Hi, what's the recommended way to manage open connections? Do I keep one Also, when a path isn't specified for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, the recommended approach is to use a singleton database instance, and let all db consumers interact with that singleton. lmdb-js is in-process, so it is different the database architecture that involves a network connection, whereas lmdb-js instance doesn't have any type of network connection, it is just an instance with the state of the interface to the database (and there isn't any connection pipe that can get blocked).
Yes, the temp database will be deleted as long as the process is terminated through normal means. But |
Beta Was this translation helpful? Give feedback.
Yes, the recommended approach is to use a singleton database instance, and let all db consumers interact with that singleton. lmdb-js is in-process, so it is different the database architecture that involves a network connection, whereas lmdb-js instance doesn't have any type of network connection, it is just an instance with the state of the interface to the database (and there isn't any connection pipe that can get blocked).
Yes, the temp database will be deleted as long as the process is terminated through normal means. But
kill -9
, for example,…