N
|
Nir Frumer 2/21/2020 |
hi |
T
|
Tim author 2/21/2020 |
Thanks for the reply. I do have an index that covers both of the order by fields and are sorted in the same direction. |
![]() |
Admin 2/21/2020 |
There must be some sort of a native solution to this. If vMyView is a view in SQL Server you can either optimize it (indexes) or at the very least add that OPTION (USE HINT('DISABLE_OPTIMIZER_ROWGOAL')) hint to the view. |
T
|
Tim author 2/21/2020 |
Thanks. It is a view, but the OPTION clause can't be used in views. |
T
|
Tim author 2/21/2020 |
Wow, I think I may have fixed my query! Based on this forum post: |