Closed W4G1 closed 2 weeks ago
Can you send an example that reproduces the issue? I've never seen that before
I found the problem. I had the previous write tx open for too long because there was also some other intensive process in between, which is why the next write tx had to wait 1-2s. When I removed this in-between process then consecutive write transactions were fast again.
Sorry for the false positive :)
Starting a new write transaction with
Database.begin_write()
directly after a previous one finished withWriteTransaction.commit()
takes about 1-2 seconds. I initially thought this had something to do with the default durability, but even when using DurabilityEventual
orNone
, it's still very slow.Database.begin_write()
without a priorWriteTransaction.commit()
is very fast and only takes about 3.4µs on my machine.