We have CRM NAV on premise. We have lot of performance issue. We do get 40-50 messages per day regarding waring for query Execution times in application log.
The warning message that we get in application log which is like
Warning 1: Query execution time of 46.3 seconds exceeded the threshold of 30 seconds. Thread: 148; Database: MSCRM; And query itself.
But when we run that query it takes no time in SSMS OR may be 1 or 2 seconds.
Why there is a big difference in terms of time running the query from CRM and directly on SSMS. ?
Do you think we should rebuild or reorganize indexes anyway to improve performance ?
Thanks. P.