This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-05
Channels
- # aleph (6)
- # announcements (2)
- # babashka (8)
- # beginners (121)
- # calva (7)
- # cider (7)
- # clj-kondo (25)
- # clojure (167)
- # clojure-android (1)
- # clojure-italy (1)
- # clojure-sweden (1)
- # clojuredesign-podcast (2)
- # clojurescript (11)
- # community-development (33)
- # cursive (23)
- # data-science (1)
- # datascript (11)
- # datomic (7)
- # emacs (12)
- # events (1)
- # fulcro (15)
- # graalvm (3)
- # hoplon (1)
- # instaparse (1)
- # malli (12)
- # off-topic (1)
- # planck (3)
- # re-frame (5)
- # shadow-cljs (61)
- # test-check (2)
does anyone know if the order of datoms in a tx matters?
I have a bunch of datoms in the operation format (`[:db/add 1 :prop "value]`)
if it helps, I know these are already normalised because I got them off a tx-report
I'd like to know if I could transact them in a new tx but in random order, and if that'd always yield the same db
I suspect the order of :db/add and :db/retract in a transaction will matter if they refer to the same attribute of the same entity
yes that sounds likely...
I also tried making the order not matter and that make some pulls present varying order on ref arrays
@filipematossilva fwiw, I believe the behavior of datascript & datomic differ in behavior for this case. https://github.com/tonsky/datascript/issues/172
that definitely answers my question
so yeah, order matters a lot
thanks!