SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS Report Optimisation Query


SSRS Report Optimisation Query

Author
Message
abigail.tomlins
abigail.tomlins
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 44
Good Afternoon

I have been creating a report within SSRS containing a number of tablix matrix and charts. My current execution time is just over 10 seconds however I want to get it down to 5 seconds. I'm new to SSRS so apologies if this is a silly question. I have been researching optimisation techniques online and have found I need to look at the execution plans for the reports. I have narrowed my slow rendering issue down to one of the charts within the report (a line graph) for which I have looked at the SQL query and used the execution plan to determine the problem. It told me to index an area of the query which I have now completed however it doesn't seem to have any impact within the running time of the SSRS report. At the moment it's still running at just over 10 seconds. Does anyone have any ideas as to what else I can try?

Many Thanks

Abbie
Luis Cazares
Luis Cazares
SSC-Forever
SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)

Group: General Forum Members
Points: 40566 Visits: 19814
Performance problems can be caused by many things and we don't have enough information. Please read the following article to be able to post what we need to help you.
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/


Luis C.
General Disclaimer:
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?


How to post data/code on a forum to get the best help: Option 1 / Option 2
Jack Corbett
  Jack Corbett
SSC-Forever
SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)

Group: General Forum Members
Points: 42935 Visits: 14925
How are you running the report, in BIDS or deployed to a report server? I'd recommend deploying it to a report server and testing performance there. You can query the ExecutionLog3 view in the ReportServer database to find out a bit more about what part of the process needs the most tuning: data retrieval (the query), processing (calculations, etc... on the report), rendering. You can then use this data to assess if changes you have made are working and how well.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
MMartin1
MMartin1
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6993 Visits: 2033
Are you embedding the SQL in the report or is the report calling a stored procedure? The latter would be preferred if possible.

----------------------------------------------------
How to post forum questions to get the best help
abigail.tomlins
abigail.tomlins
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 44
Hiya

The report is calling a stored procedure so speed wise it should be ok, I'm wondering whether it's just the amount of data it's trying to retreive as it's quite alot?
Jack Corbett
  Jack Corbett
SSC-Forever
SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)

Group: General Forum Members
Points: 42935 Visits: 14925
abigail.tomlins (8/20/2014)
Hiya

The report is calling a stored procedure so speed wise it should be ok, I'm wondering whether it's just the amount of data it's trying to retreive as it's quite alot?



While using a stored procedure may make it easier to optimize teh SQL, in reality, a stored procedure vs. parameterized sql doesn't really make a difference in performance. You really need to take a look at the ExecutionLog3 view, as I mentioned in my first post to determine what part of the report run is taking the most time. A query like this:

SELECT
EL.ItemPath,
EL.UserName,
EL.ExecutionId,
EL.RequestType,
EL.Format,
EL.TimeDataRetrieval,
EL.TimeProcessing,
EL.TimeRendering,
EL.Source,
EL.ByteCount,
EL.[RowCount]
FROM
dbo.ExecutionLog3 AS EL



is a decent starting point as you'll have some actual metrics to work from.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search