简体   繁体   中英

SSRS report Slow in Reporting Server

I have a report SSRS deployed in reporting service, during the execution it is very slow on the other hand that if I run in visual studio (SSDT) it works fast (query return 200 000 lines)

What can I do ?

Your report server could have resource issues. However from my experience it is more likely that the difference is due to the CRM user accounts executing the reports from the two different environments. There is significant overhead involved with accessing the filtered views with a non-admin account because of the underlying security mechanisms built into those views. If you are using filtered views, and running the reports in Visual Studio using an account with System Administrator permissions, while the reporting services account is not a System Administrator then that could explain the behavior.

Are you using filtered views? Can you post your query code?

Update:
Since you think you are not using filtered views then I would try a few different things:
- Verify that the version of the report being rendered on the report server is the same version that you are working on in VS (eg make a small change and verify it carries across)
- Make sure your query is as efficient as possible. I don't see anything obviously wrong with the partial code you posted but that doesn't mean much since we can't see how your temp tables are being generated.
- Review indexes on the tables involved in the report, and add any missing indexes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM