This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-12
Channels
- # announcements (1)
- # babashka (42)
- # beginners (114)
- # bristol-clojurians (2)
- # calva (7)
- # cider (4)
- # clj-kondo (7)
- # cljs-dev (37)
- # cljsrn (13)
- # clojure (114)
- # clojure-austin (3)
- # clojure-europe (5)
- # clojure-nl (10)
- # clojure-spec (77)
- # clojure-sweden (4)
- # clojure-uk (16)
- # clojurescript (52)
- # conjure (155)
- # core-async (18)
- # cursive (23)
- # datomic (20)
- # duct (2)
- # emacs (13)
- # figwheel (3)
- # figwheel-main (9)
- # fulcro (31)
- # gis (8)
- # helix (33)
- # jobs (12)
- # jobs-discuss (66)
- # kaocha (4)
- # lein-figwheel (1)
- # meander (16)
- # off-topic (5)
- # pathom (13)
- # pedestal (6)
- # quil (6)
- # rdf (17)
- # re-frame (32)
- # reagent (34)
- # reitit (30)
- # remote-jobs (1)
- # ring (2)
- # shadow-cljs (149)
- # spacemacs (1)
- # sql (8)
- # tools-deps (90)
- # xtdb (19)
Datomic Cloud Question: Does anybody have a way to use Component or Mount to set up database configuration and load parameters? Putting it into the lambda initialization setup does not work. I don't know what to do...
Hey, a Datomic noob question, should one call d/connect for every transaction or one can call it once and store a ref to :datomic.client/conn for the whole life cycle of an application, and call d/db per transaction instead ?
(Kind of joins @hadilsabbagh18 ‘s question in a way)
Datomic connections do not adhere to an acquire/use/release
pattern. They are thread-safe and long lived. Connections are
cached such that calling datomic.api/connect multiple times with
the same database value will return the same connection object.
that happens to be the api reference for the peer API, but the same is true for client
@marshall that may be true for the connection, but I have other components in my application., such as parameter loading and channel setup. I still need to use mount
@hadilsabbagh18 yeah, that answer was directed at @nate Managing lifecycle in Ions is a bit different; You need to handle those sort of things in a way that isn’t triggered by ns loading
for example, the Ion tutorial manages db lifecycle outside the push/deploy cycle: https://docs.datomic.com/cloud/ions/ions-tutorial.html#orgf40df0d
https://docs.datomic.com/cloud/ions/ions-reference.html#parameters Params I would use Ion parameters: https://docs.datomic.com/cloud/ions/ions-reference.html#parameters
@marshall has the parmeters been fixed to handle more than 10 parameters? I rewrote it to handle more than 10 paramaters.
https://forum.datomic.com/t/ion-get-params-throws-exception-when-returning-more-than-10-values/1303/2?u=marshall get-params is a convenience wrapper
Thanks @marshall. So I use my parameters in get-client
this is where the problem is...