-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement async transaction commit/rollback methods #113
Comments
(note: these should hopefully also make it into .NET Standard 2.1) |
Is there written guidance anywhere on the suggested patterns of do and don't for implementing |
I'm not sure there's an "official" guide or anything, but the basic idea is to bring the instance to the same state it would have had if |
Note this user complaint about the lack of async transaction APIs: dotnet/efcore#21818. Not sure how complex this is to implement, but I'm hoping it can be done at some point to unblock perf issues such as this. |
I want to bump up this issue - I think it is important that this be prioritized. At a certain scale and workload type, we hit a ceiling due to this issue, and are forced to do manual transaction management (using BEGIN/COMMIT statements). I'm sure there are many users who aren't aware this issue even exists, and simply scale up their application more than they need to. |
This also seems to be a partial blocker preventing Hangfire from fully adopting the async pattern in the job scheduler if my understanding is correct. Lack of proper async in the SqlClient seems to be causing quite a bit of friction in both MS and third-party libraries alike |
.NET Core 3.0 will fill in some missing async APIs (e.g. transaction management), these should be implemented in SqlClient at some point.
https://github.com/dotnet/corefx/issues/35012
The text was updated successfully, but these errors were encountered: