Fork me on GitHub
#datomic
<
2016-06-07
>
hans06:06:14

It is better to attach the parent to the children rather than the children to the parent because that enables referencing in both directions.

hans06:06:02

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.

bvulpes06:06:08

hans you can walk refs both direction

bvulpes06:06:32

nxqd: i use it for basically all state storage

hans07:06:29

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.

bvulpes07:06:10

i suppose it depends on how frequently you'll be walking which direction, and how much you like typing underscores

bvulpes07:06:13

but that's kind of glib

bhagany07:06:06

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

bhagany07:06:21

I also end up typing a lot of underscores, though

dm311:06:07

is it true that Tx size can affect query performance?

dm311:06:00

suggests it's best to keep Txs in 1-45kb range. However one would think this only matters for writing transactions

jonpither14:06:50

hi - do people run the transactor in a docker image?

jonpither14:06:57

for dev purposes

marshall15:06:07

@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/

nwjsmith16:06:24

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)+?