Adding T-SQL query option functionality #3007
Replies: 4 comments
-
Worth checking: these kind of troubles may be gone with SQL Server 2022. They announce having worked on solving performance troubles bound to "parameter sensitive" queries (among other highlights). |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello aim iqs-leopold, |
Beta Was this translation helpful? Give feedback.
-
Okay, i made a pull request. |
Beta Was this translation helpful? Give feedback.
-
I am looking for the ability to add the
OPTION(RECOMPILE)
to queries. I know it is possible to do this using an interceptor, but due to the way NHibernate is configured in my organisation this requires some ugly code to accomplish.I have found some earlier discussion around this topic (#918) and a branch by @IQS-Leopold. This is all from 2017.
Is there any chance that this will get implemented in the foreseeable future? nhibernate's parameterized queries prevent the usage of filtered indexes unless the recompile query option is used so it would be great to have the ability to add query options build into nhibernate.
Beta Was this translation helpful? Give feedback.
All reactions