This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-31
Channels
- # bangalore-clj (3)
- # beginners (15)
- # boot (128)
- # cider (4)
- # cljs-dev (12)
- # cljsjs (1)
- # clojure (105)
- # clojure-austin (5)
- # clojure-canada (6)
- # clojure-italy (5)
- # clojure-russia (14)
- # clojure-spec (70)
- # clojure-uk (21)
- # clojurebridge (3)
- # clojurescript (264)
- # cloverage (6)
- # cursive (4)
- # data-science (6)
- # datomic (10)
- # dirac (5)
- # editors (30)
- # events (3)
- # hoplon (9)
- # klipse (7)
- # leiningen (3)
- # luminus (4)
- # off-topic (9)
- # om (5)
- # om-next (1)
- # onyx (1)
- # parinfer (2)
- # perun (28)
- # re-frame (5)
- # ring (1)
- # rum (11)
- # spacemacs (2)
- # specter (10)
- # sql (3)
- # uncomplicate (4)
- # untangled (67)
- # vim (2)
- # yada (1)
@casperc per: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/BlockingQueue.html “ A BlockingQueue does not intrinsically support any kind of "close" or "shutdown" operation to indicate that no more items will be added. The needs and usage of such features tend to be implementation-dependent. For example, a common tactic is for producers to insert special end-of-stream or poison objects, that are interpreted accordingly when taken by consumers."
If I update some of the values on a component entity as part of a transaction on the parent entity, I’ve noticed that a new component entity is created, instead of it’s values being updated. Is there some way to update component attribute values as part of a transaction on the parent?
IE:
;; What I’m currently seeing:
(:person/address (d/pull db '[{:person/address [*]}] tony-soprano))
;; => {:db/id 1234 :address/city “Newark” :address/state “NJ”}
(d/transact
conn
[{:db/id (:db/id tony-soprano)
:person/first-name “Tony”
:person/address {:address/state “New Jersey”}}])
;; => #object
(:person/address (d/pull db '[{:person/address [*]}] tony-soprano))
;; => {:db/id 5678 :address/state “New Jersey”}
Discovered that adding in :db/id
as part of the nested component prevents that from being automatically assigned a new one
Hi all... Is there an easy way to see whether a datomic transactor is the primary or failover transactor (in a set of 2)? I'm thinking about trying to run automated datomic backups from the failover one only
The active transactor writes its location into storage for peers to find it. The passive or standby transactors do not so you would have to look into the transactor logs for the metric
Thanks @jaret, will see what I can do with that