Fork me on GitHub
Jakub Holý (HolyJak)05:04:42

Hi! If I transact {:tx-data [{:db/id -1, :name "first"}, {:db/id -2, :account-balance-usd -1}]} then the second entity's :account-balance-usd will end up pointing to the first entity instead of holding the expected value -1 . I guess that the only way to avoid it is to make sure that the temp id values differ from values used in attributes, right?


For now… yes. I know this is a problem, and knew it when I did it. But it also didn’t hit any of my use cases, and I thought that maybe I’d get away with it 😳

👍 1

I have a few ways to avoid this. I can use node refs, or I can use schemas (which are coming). But I have yet to implement either

Jakub Holý (HolyJak)19:04:05

No problem! There is an OK solution. I don't complain, Asami is a great p piece of SW and you put a lot of effort into it. As long as I know what (not) to do, it's perfectly fine :)

👍 1