MySQL - Change Default Isolation Level?
-
- Posts: 3
- Joined: Mon 26 Mar 2012 16:15
MySQL - Change Default Isolation Level?
Is it possible to change the default isolation level that the DataContext uses when internally handling transactions with .SubmitChanges()? We're running into the InnoDB binary logging format issues and would prefer to just change the default isolation level instead of manually wrapping all of our code in TransactionScope's/transactions.
Hey
I am not sure, but maybe you can use a little kind of hack for this.
You can set the isolation level in a very early situation.
For example, after you create the Context. - Than after the creation, you can run an
like this.
After this, the Isolation Level for the complete user connection should be established.
So, this you could try. - Maybe it helps.
Have a nice day
I am not sure, but maybe you can use a little kind of hack for this.
You can set the isolation level in a very early situation.
For example, after you create the Context. - Than after the creation, you can run an
commandSet Transaction Isolated Level
like this.
Code: Select all
Dim myDataContext As New DataContext
myDataContext.ExecuteQuery("Set Transaction Isolation Level READ COMMITTED")
So, this you could try. - Maybe it helps.
Have a nice day
-
- Posts: 3
- Joined: Mon 26 Mar 2012 16:15