Fork me on GitHub
#datalevin
<
2022-05-18
>
alex31415908:05:19

Hello. Using server/client mode. Weird issue if anyone has an idea shots going on. If I keep my connection open, any add transaction using transact! deletes the previous transaction. It's fine if I close connection in between. Not sure if related or not but repl on client always comes back with `{:datoms-transacted 0} Using 0.6.11 on windows Thanks!`

alex31415909:05:55

Basically the new transaction writes to the same db/id without incrementing it. Each transaction is a vec of maps with each map having :db/add -1

alex31415910:05:22

Update: it works if I manage and increment db/id myself - obviously not ideal

Huahai15:05:13

you will have to show the code to reproduce it

Huahai15:05:36

otherwise we don’t know what you are talking about.

Huahai15:05:16

my guess is that you have have some misunderstanding of the transaction semantics

alex31415915:05:13

Fair I'll do later as no access to slack from work and painful on phone. But my transactions work fine with a local db, it's in client/server mode that the max-eid doesn't update automatically for some reason.

Huahai17:05:00

it would be great if you could isolate the case and file an issue. Thanks.

👍 1
alex31415920:05:49

Opened #123

👍 1
Huahai21:05:28

Probably a regression. Will fix it soon. Thanks.

alex31415921:05:23

Awesome thx!

Huahai18:05:57

The fix is in 0.6.12

alex31415919:05:46

You're a star! Thanks!