When is it appropriate to namespace/qualify an datomic datom attribute instead of having it un namespaced/unqualified? E.g ( entity human/name drew) vs (entity race human)(entity name drew). I would say it depends on if you ever need to query those attributes separately.
I would say, always qualify all idents
Interesting, but why? What if I want to query for everything by name? How would you do that if name isn't a free standing attribute?
There are exceptions to the rule @drewverlee, for example, having an :ordinal
attribute can be nice rather than :foo/ordinal
, :bar/ordinal
, etc. But it's also something to do very deliberately.
What is your specific usecase?
I might use a more generic namespace that could be shared by two cases, but I would always use a namespace