You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request to add support for OPTION (RECOMPILE) #36439
I encountered slow linked table queries in the project and eventually discovered that it was caused by parameter sniffing. I didn't want to write native SQL or stored procedures, so I tried many ways but couldn't solve the problem. I added OPTION (RECOMPILE) at the end of the SQL generated by efcore to solve the problem, and changed the parameters generated by efcore to local variables. I hope to add a query hint
Activity