asami

Jakub Holý (HolyJak) 2022-04-02T05:42:42.276739Z

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?

quoll 2022-04-02T16:11:33.197789Z

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
quoll 2022-04-02T16:12:13.678019Z

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

quoll 2022-04-02T16:12:22.187049Z

(Sorry)

Jakub Holý (HolyJak) 2022-04-02T19:05:05.917949Z

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