dscarpetti / codax

An idiomatic transactional embedded database for clojure
Eclipse Public License 1.0
179 stars 9 forks source link

Thread safe connections #15

Closed dscarpetti closed 7 years ago

dscarpetti commented 7 years ago

open-database close-database and destroy-database are fully thread safe. This comes at the expense of a global lock which could be a bottleneck in situations where many databases are being opened and closed.

open-database is also idempotent. Instead of throwing an error, attempting to open an already open database will return the existing database connection.