Last active
August 29, 2015 13:57
-
-
Save elliot42/9354357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#datomic on freenode | |
11:45 < splunk> can a datomic conn's state go bad/stale? how does one check that state to know whether to reconnect? | |
11:46 < stuartsierra> I think you never need to reconnect. | |
11:47 < splunk> stuartsierra: thanks. (worth documenting?) | |
11:47 < stuartsierra> Connections are long-lived and cached. I think that's in the docs somewhere. | |
11:49 < stuartsierra> You don't even need to keep a connection around. `connect` will return a cached connection, at the cost of one map lookup. | |
11:49 < splunk> That is awesome | |
11:50 < splunk> That cleans up a bunch of my "remember to pass the conn all the way down!" code | |
11:50 < splunk> Although I guess it's just, giving you global access to some state somewhere | |
11:50 < splunk> But you guys are managing the state | |
11:51 < stuartsierra> yes | |
11:53 < splunk> ah, it's mentioned under the docs for `release` | |
http://docs.datomic.com/clojure/index.html#datomic.api/release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment