This query is executed every 2 - 3 seconds and averages 55 seconds in duration. It is the highest Top SQL query in our production database by sorted by CPU usage.
By Tom Sweet 1 asked Apr 26 at 07:20 PM
I wonder if you need to keep that much ExecutionLog history or if you can purge some of the older data. I also can't think of a reason that should be running as frequently as you suggest - is it possible you created an Advisory Condition that looks at SSRS? What exactly is the application name in Top SQL? Could you provide a screen shot?
In any case, could you generate an actual plan after creating this index?
There are some other index changes that could lead to further efficiencies, but this should take care of the problem exhibited when ExecutionLog gets rather large.
If adding indexes isn't supported at all (I'm not familiar with SSRS / ReportServer database support policies), or if that index doesn't help, please open a support ticket (e-mail support@SentryOne.com). Even if it does help, I'm still interested to find out what could be causing that query to run so often...
By Aaron Bertrand ♦ 1.7k answered Apr 26 at 07:33 PM