-
Notifications
You must be signed in to change notification settings - Fork 27
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
Set Size to -1 to optimize SQL Server query plan execution #1254
Conversation
@ramonsmits are you taking care of the smoke testing bit? |
@mauroservienti done! As this is an enhancement what do you think? Only release this for the next major or should this be backported to the current release major? |
I think it should be backported to the currently released major. That's the only release available to users, the next major is in the works but there is no ETA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement. Could we make the parameters lengths explicit?
818cef1
to
8ff785a
Compare
Although these last commits use the actual lengths of the schema it feels error-prone. It would require additional refactoring to really make the lengths part of a central schema to get the length information which is a major code change. Dapper uses I vote for reverting these changes revert to e0d21e0. That behavior is pretty much as dapper except that dapper sets length to -1 when its a null value. That logic doesn't make sense IMHO and we can keep the behavior at e0d21e0. @tmasternak @mauroservienti what do you think? |
Agreed. 👍 to revert to e0d21e0 |
This reverts commit 8ff785a. Revert "Set default lengths as suggested by @tmasternak" This reverts commit f668d68.
Co-authored-by: Mauro Servienti <[email protected]>
Size needs to be set to -1
Smoketested using the SQL Outbox sample:
DBCC FREEPROCCACHE