You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since any unit of work may change data, it made sense to always create a transaction. This means every unit of work would open a connection, then call SqlConnection.BeginTransaction.
Nevermore 12 introduced BeginReadTransaction, which can be used to read data but has no methods for changing it. This was mostly intended for geo-replication scenarios where you are reading from a read-only replica, and want to avoid programming errors.
However, it still called BeginTransaction with read-committed isolation level for every call. And since we are by definition only reading data, this isn't necessary.
In Nevermore 12.7 the behavior will change so that BeginReadTransaction no longer calls BeginTransaction - it simply opens the SQL connection without creating a transaction. This shaves some time off the query:
The slightly confusing part is that BeginReadTransaction doesn't actually begin a transaction anymore 😆
The text was updated successfully, but these errors were encountered:
The "unit of work" in Nevermore was always a "transaction":
Since any unit of work may change data, it made sense to always create a transaction. This means every unit of work would open a connection, then call
SqlConnection.BeginTransaction
.Nevermore 12 introduced
BeginReadTransaction
, which can be used to read data but has no methods for changing it. This was mostly intended for geo-replication scenarios where you are reading from a read-only replica, and want to avoid programming errors.However, it still called
BeginTransaction
with read-committed isolation level for every call. And since we are by definition only reading data, this isn't necessary.In Nevermore 12.7 the behavior will change so that
BeginReadTransaction
no longer calls BeginTransaction - it simply opens the SQL connection without creating a transaction. This shaves some time off the query:The slightly confusing part is that
BeginReadTransaction
doesn't actually begin a transaction anymore 😆The text was updated successfully, but these errors were encountered: