Hello, when starting a database transaction i.e. `...
# exposed
r
Hello, when starting a database transaction i.e.
suspendedTransactionAsync
, is a database connection immediately established? or does that happen on the first database operation inside the transaction block?
c
Hi @Ryan Al The second. A connection is only established on the first database operation encountered inside the new transaction block. So a blank and empty
transaction { }
, for example, would not actually ever get a connection.
thank you color 1