Print Page | Close Window

Export too slow

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=8598
Printed Date: 19 May 2024 at 3:32pm


Topic: Export too slow
Posted By: chris
Subject: Export too slow
Date Posted: 09 Dec 2009 at 1:28am
Hi all,
 
I have what I consider to be a fairly simple report which takes about 15 seconds to run but is taking about 90 minutes to export to any format.
 
GH1 - Person ID
GH2 - Conference Date - a formula to show the next conference date is also shown in this group. This gives me a date period which I then pass into a subreport.
D - Subreport - Shows all reviews that have happened in the date period passed through from GH2 (most records will have approx 3-5 reviews)
 
Can anbody suggest what might be the reason why the report is taking so long to export.
 
Some of the data from the Performance Information screen in case that helps....
 
Saved Data
Total number of records 21254
size of saved records 23mb
 
Processing
Grouping on database server - No
Sorting on database server - No
Record selection done on database - Yes
Require two passes - Yes
Page Count - No
Nodes in Group Tree - 37711
Summary Values - 0
Size of Group Tree - 1mb
Built group tree in progress - No
 
Performance Timing
Open Document - 3236ms
run database query - 19459ms
read database records - 1175ms
format first page - 21594ms
pages formatted - 1
average - 21594ms
 
 
Hopefully this is enough information for somebody to spot what might be wrong. I am happy to provide more if needed.
 
Many thanks
 
Chris
 
 
 
 
 
 
 
 
 
 
 
 



Replies:
Posted By: hilfy
Date Posted: 10 Dec 2009 at 10:19am
When you run a report that has subreports, the subreport only runs for the page that is being rendered (unless you're using a page count as in "page n of m".)  So, when you run the report to view it, it only reads through the data in the main report and then the subreport for each record on the first page.  As you change pages, it runs the subreports for the next page, etc.
 
When you export, it has to run the subreport for every page as it's exporting the data.  Each instance of the subreport (ie, for each person on the report) is a separate query against the database.  If you have 37711 nodes in the group tree, this probably means that the subreport runs 37711 times for the export.
 
If you can format the review data to appear correctly in the details and/or a new group on the main report without using a subreport, that should speed up the export significantly.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window