-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
SQL Server: Possible perf optimization leveraging autocommit transactions in SaveChanges() #6342
Comments
SaveChanges()
Nice idea. |
Triage: we want to understand the actual benefit of this before we prioritize it. |
@gdoron are you talking about |
There was no measurable difference, SQL Client probably already optimizes this |
@AndriySvyryd thanks for the prompt investigation. Closing. |
By default every Transact-SQL statements is executed in autocommit mode, meaning that it will be automatically committed if it succeeds and rolled back if it fails. In theory when
SaveChanges()
gets invoked with only one changed object which doesn't have database generated values, we shouldn't need to wrap the statement in a transaction.The text was updated successfully, but these errors were encountered: