Print Page | Close Window

Subreports and slowness

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=21368
Printed Date: 04 May 2024 at 11:39pm


Topic: Subreports and slowness
Posted By: thummel1
Subject: Subreports and slowness
Date Posted: 10 Mar 2015 at 10:28am
Hi,
 
Looking for general ideas/thoughts related to subreports in Crystal Reports 2008. We have several reports in our organization that require subreports. They are great in that they display the data you need, but they bog down the reports so much, causing them to sometimes take hours to run.
 
I'm wondering if anyone else experiences this, and has found an alternative to using subreports that helps their reports run more efficiently?
 
Thanks!
 
 


-------------
"Press any key to continue. Where's the 'Any' Key?" ~Homer Simpson



Replies:
Posted By: DBlank
Date Posted: 10 Mar 2015 at 10:53am
I try to avoid using them if possible. It really depends on why you are using them which will vary from report to report. I see use of them as ways to avoid 'duplicating' data which can often be handled in other ways.
Can you accomplish the same thing in a stored procedure?
Can you attend to the content by grouping? Can you make the sub reports run time reports that only execute when selected?
 
Also are you using "page N of M" in Crystal that will also slow down run/rendering time?


Posted By: lockwelle
Date Posted: 01 Apr 2015 at 5:58am
As another thought, you could select the data for your subreport in the 'main' select (assuming the stored procedure approach) and then you use grouping to simulate the subreport.

Similarly, if you have an application, you could return a dataset to the application which could feed it to the report via XML and then the same solution as above (just linked tables take up less space than uber wide tables).

Just some more ideas



Print Page | Close Window