Hi all,
I am using sql server 2017, and I was trying to optimize a query that runs slowly. Surfing some blogs, I came across query hints and used this one:
option(use hint('DISABLE_OPTIMIZED_NESTED_LOOP'), maxdop 1);
Unfortunately, what happened is now the query runs even slower, and I couldn't figure out how to reverse the effect of this hint.
My questions would be:
1- Does this hint affect other users and their queries too ??
2- How to restore the query optimizer to its default settings ??
I appreciate you help in this matter.
Best Regards