datomic - Is it idiomatic to make a join entity? -
when join entity mean whatever datomic equivalent sql join table is. have parent entity attribute name , have child entity attribute name. parent in many many relationship child each parent can have multiple children , each child can have 2 parents.
if using sql i'd create join table family includes foreign keys parent , child; datomic, have option pick either parent or child give reference attribute other many cardinality. favored approach on creating new entity? if family has attributes more associated family whole individual parents/children; example, family priority number?
datomic's flexible schema allow model either way. if need model attributes family itself, though, makes more sense family reified entity.
Comments
Post a Comment