Fork me on GitHub
#datomic
<
2020-11-25
>
favila16:11:11

I noticed attribute predicates check explicitly retracted values (from user-supplied tx data or tx-fn expansions) but not implicitly retracted values (from cardinality-one attributes with a new assertion). 1) Why check retractions at all? 2) Why this difference? I’m observing this on on-prem 1.0.6165 if it makes a difference.

favila16:11:46

I would prefer that attribute predicates are never run on retracted values as it makes it much easier to migrate to cleaned-up values. In our case we’re installing string length limits, and would be ok with old values being too long as long as new values are not.

👍 3
favila16:11:26

It also means we need some kind of atomic tx fn to install an attribute predicate safely.

favila17:11:30

IMO this is a bug report; I’m just being polite 🙂

Alex Miller (Clojure team)17:11:52

standard support channels are best, then ask.datomic as it creates a searchable archived record for the future, and then here is good for conversation but checked less frequently than the above