Troubles with upsert on composite tuples

I’ve upgraded to the latest and the behavior I’m seeing is the same as described in my original comment.

I originally tried to assert the individual elements, but that causes the problem described in this thread. In short, the transaction will fail with a conflict error. To quote you from over in that thread:

After reading that, I tried asserting the composite tuple key directly, which has the problems described in my original post.

Glad to hear this. Was concerned for a moment there, since using refs in composite keys is a critical use case for me!

If you’re saying all this stuff works: Could you please provide a repl log demonstrating how to upsert via a tupleAttrs based multi-attribute unique/identity key?

Thanks!

3 Likes