I spent several hours troubleshooting, and I need a fresh perspective.,.
We have a relatively simple report setup in SSRS, a simple matrix with columns at the top and data points going down. The SQL query for the report is of "medium" complexity - it has some subqueries and several joins, but nothing crazy.
The report worked perfectly for several months and has recently become REALLY slow. For example, 15-20 minutes to create a report. I can pin and paste the SQL query from the report designer in SQL Mgmt Studio, replace the necessary variables, and it scrolls the results in less than 2 seconds. I even went so far as to use the SQL profiler to get the exact query that SSRS executes, and cut and paste it into Mgmt Studio, still the same, the results for the second. The parameters and date ranges do not matter, I can set the parameters to return a small data array (<100 rows) or large (> 10,000 rows) and all the same results; super-fast at Mgmt Studio, but 20 minutes to create an SSRS report.
Troubleshooting I have tried so far: Deleted and redeployed the report in SSRS. Tested in Visual Studio IDE on several computers and on the SSRS server, at the same speed (~ 20 minutes) in both places. The SQL Profiler used to monitor the SPID executing the report captured all the SQL queries that were executed and tried them individually (and together) in Mgmt Studio - quickly starts in Mgmt Studio (<2 seconds) Monitoring server performance during report execution. The processor is pretty damned for the 20-minute report generation, disk I / O is slightly higher than the base
source share