Fork me on GitHub
#datomic
<
2020-01-31
>
eraserhd19:01:17

I have a transaction that retracts two values and asserts one for a cardinality-one attribute on a single entity. That is weird, right?

favila19:01:46

are they two different values retracted? Is it a schema entity?

favila19:01:52

or, do you have the log?

eraserhd19:01:56

this is from the log. the two retractions have equal values, and are different from the assertion

favila19:01:33

ah, so if you explicitly retract and assert a new value on the same e and card-1 attr, datomic may not drop the redundant retraction. This is an issue we encountered during decanting (it made decanting an already-decanted database break). I don’t remember if this was fixed

matthavener19:01:27

what is decanting?

eraserhd19:01:30

ahhh... ok, and in this case we certainly would be doing that

eraserhd19:01:38

that was my other question :D

favila19:01:05

decanting is replaying and transforming the tx log on one db to fill a new db

👍 4