Skip to content
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

Change default value for 'arithabort' to ON in v2.0 #509

Closed
tvrprasad opened this issue Feb 21, 2017 · 5 comments · Fixed by #1027
Closed

Change default value for 'arithabort' to ON in v2.0 #509

tvrprasad opened this issue Feb 21, 2017 · 5 comments · Fixed by #1027
Assignees
Labels
BREAKING CHANGE Follow up Recent question asked by tedious members for old issues or discussion that requires member input released

Comments

@tvrprasad
Copy link
Contributor

Based on the recommendation on MSDN page, perhaps we should change the default value for 'arithabort' to 'on' for 2.0 release. It'll be a breaking change. From the MSDN link https://msdn.microsoft.com/en-us/library/ms190306.aspx:
"
The default ARITHABORT setting for SQL Server Management Studio is ON. Client applications setting ARITHABORT to OFF can receive different query plans making it difficult to troubleshoot poorly performing queries. That is, the same query can execute fast in management studio but slow in the application. When troubleshooting queries with Management Studio always match the client ARITHABORT setting.
"

@ariskemper
Copy link
Contributor

#508 I think this don't need to be setled to ON for production environments?. If you want to troubleshoot you could turn it on via options.

@tvrprasad
Copy link
Contributor Author

From the MSDN page https://msdn.microsoft.com/en-us/library/ms190306.aspx:
"You should always set ARITHABORT to ON in your logon sessions. Setting ARITHABORT to OFF can negatively impact query optimization leading to performance issues."

Seems like ON gives better performance. Is there a downside to making it the default? The client can turn it off via options with your PR.

@ariskemper
Copy link
Contributor

@tvrprasad i havent read that paper before, i was in doubt because is breaking change, now i agree with you that we could make this default ON.

@IanChokS IanChokS added the Follow up Recent question asked by tedious members for old issues or discussion that requires member input label Dec 17, 2019
@arthurschreiber arthurschreiber self-assigned this Dec 29, 2019
@arthurschreiber
Copy link
Collaborator

#1025 adds a deprecation message when opening a new Connection without specifying an explicit value for enableArithAbort. The next major version will then switch from the default being false to the default being true.

@arthurschreiber
Copy link
Collaborator

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE Follow up Recent question asked by tedious members for old issues or discussion that requires member input released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants