The correct solution (at least in my case) wass to avoid combining async with database transactions. Transactions do not support running queries asynchronously. If you want to run I/O operations concurrently, I suggest getting rid of the transaction.