Fork me on GitHub
#datomic
<
2016-10-06
>
pesterhazy09:10:06

@tony.kay that's pretty awesome!

pesterhazy09:10:49

"Assumes that the Datomic schema makes use of the :entity/attribute convention for all attributes." -- that's a pretty strong assumption though

robert-stuttaford10:10:54

it is a strong assumption. as a data point, we have over 600 attrs and they all follow that convention

val_waeselynck10:10:26

as another data point, we do use the entity-type/attribute convention, but we sometimes mix-in several entity types for the same entity, i.e {:animal/sound "woof" :dog/breed "labrador"}

val_waeselynck10:10:05

so not sure it complies to said constraint

pesterhazy12:10:26

@val_waeselynck are you working at a pet shop?

val_waeselynck12:10:07

@pesterhazy not at all, but mentioning attributes we actually use would be leaking IP

pesterhazy12:10:21

sorry was just a joke

val_waeselynck12:10:25

(just kidding, really it's just that it seemed more clear)

pesterhazy12:10:32

FWIW, we also use the :entity-type/attr convention

misha13:10:10

any examples of other conventions?

misha13:10:59

or is it about entities having :non-entity-type/attrs, like :db/id?

misha13:10:22

@robert-stuttaford greetings! how do you handle ordinal :db/isComponent false entities? I end up wrapping those in

{:ordinal/idx 2
 :ordinal/ref [:user/email ""]}
are there any sound alternatives to this?

pesterhazy15:10:24

one example is cross-cutting attributes, like a created-at attribute

rwtnorton15:10:47

@val_waeselynck the mixed attr case you listed above would be fine as far as the sql-datomic tool is concerned. it is mainly the case where there is no namespace for an attribute that the tool might not take into account.

pesterhazy15:10:59

does the tool use pull syntax or datalog to pull in attributes?

robert-stuttaford16:10:32

@misha i’m not sure i understand your question

rwtnorton16:10:52

@pesterhazy It grabs the entities with non-pull syntax and then filters out attrs.

pesterhazy16:10:52

it uses d/entity? I see

pesterhazy16:10:24

it's important as for handling of missing attributes (NULL columns)

afhammad22:10:01

whats with the negative temp ids?

bvulpes23:10:45

@afhammad they become positive once transacted