r/SQL • u/markinatlanta • Oct 12 '26
SQL Server When do you decide a query hint is justified?
/r/u_markinatlanta/comments/1x404yz/when_do_you_decide_a_query_hint_is_justified/
1
Upvotes
r/SQL • u/markinatlanta • Oct 12 '26
2
u/gumnos Oct 12 '26
In the rare events a query-hint improves performance, go ahead and use it, but also leave copious comments to say why and how the query-hint is better than without the query-hint and why the optimizer fails to select the unhinted plan.