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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -