This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-07
Channels
- # admin-announcements (4)
- # beginners (63)
- # boot (67)
- # clara (29)
- # cljs-dev (38)
- # cljsjs (10)
- # clojars (7)
- # clojure (336)
- # clojure-belgium (3)
- # clojure-dev (22)
- # clojure-greece (30)
- # clojure-nl (1)
- # clojure-russia (9)
- # clojure-spain (3)
- # clojure-spec (169)
- # clojure-uk (12)
- # clojurescript (45)
- # clojurex (4)
- # core-matrix (3)
- # cursive (58)
- # datascript (3)
- # datomic (18)
- # events (38)
- # hoplon (228)
- # immutant (5)
- # lambdaisland (6)
- # leiningen (3)
- # luminus (8)
- # off-topic (11)
- # om (113)
- # om-next (2)
- # onyx (10)
- # parinfer (7)
- # planck (22)
- # re-frame (11)
- # reagent (25)
- # robots (7)
- # spacemacs (3)
- # specter (10)
- # yada (3)
It is better to attach the parent to the children rather than the children to the parent because that enables referencing in both directions.
i.e. zou can then select the children using the inversion syntax (:_<attribute>) in pull expressions. also, if a child needs to be removed, the parent entity does not need to be updated.
bvulpes: sure. but with an 1:m relationship, it is better to put the "1" into the "m"s rather than the other way round.
i suppose it depends on how frequently you'll be walking which direction, and how much you like typing underscores
I agree it depends a lot on your use case. I do the opposite of what hans recommends, because I need multiple parents pointing to the same children, without modifying the children
found this thread from 2013 which seems to indicate that: https://groups.google.com/forum/#!searchin/datomic/performance/datomic/ijZV-PKTCQc/-yGSEViwJUUJ
suggests it's best to keep Txs in 1-45kb range. However one would think this only matters for writing transactions
@jonpither: Hey Jon. Yes, I know several folks run Datomic in docker containers. Not sure about dev vs. production, though. The guys at PointSlope had a blog post with a basic rundown of running the transactor in a docker container: https://pointslope.com/blog/datomic-pro-starter-edition-in-15-minutes-with-docker/
In the docs for the query grammar, the grammar for inputs
is ':in' (src-var | variable | pattern-var | rules-var)+
, but shouldn't it be ':in' (src-var | variable | pattern-var | rules-var | binding)+
?
inputs can specify bindings, right? (http://docs.datomic.com/query.html#sec-5-7)