Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Report performance slow Post Reply Post New Topic
Author Message
Getch
Groupie
Groupie


Joined: 26 Dec 2008
Online Status: Offline
Posts: 47
Quote Getch Replybullet Topic: Report performance slow
     Posted: 17 Oct 2012 at 5:15am
Hi All,
 
I'm kind of in a bind with what I have available to me and need some advise on enhancing the performance of one of my dbs/reports.
 
I am stuck using Access as my db. Not so bad if my record set was not very extensive, but as it may, I have roughly 9.3 million records in the DB.
 
This represents all change activity done on our system since inception. I need this for data retention requirements and had to export from a SQL system that we will no longer support or have access to at the end of this month.
 
There are only about 10 fields of info but obviously tons of records. This will only be used to research historic info and likely pulling a very small subset of info.
 
Currently in my testing, I'm only trying to gather a single days records into a report to compare to the original system report but the crystal runs for about 10 mins before displaying my report.
 
Any suggestions of paring that runtime down? 
Newbie reports
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 17 Oct 2012 at 6:02am
What is the exact selection formula that you're using the filter the records?
 
-Dell
IP IP Logged
Getch
Groupie
Groupie


Joined: 26 Dec 2008
Online Status: Offline
Posts: 47
Quote Getch Replybullet Posted: 17 Oct 2012 at 7:58am
Hi Dell,
 
Well it could actually be anything but one test has the following:
 
{Activity_report.Operator Name} = "Jane Doe" and
{Activity_report.Activity Field Code} = "31" and
{Activity_report.Activity Date} = DateTime (2010, 06, 15, 00, 00, 00)
 
For this particular test, only 2 records match, which is what I expected, but runtime was very loonggg.
Newbie reports
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 17 Oct 2012 at 9:50am
The reason I asked is to see whether you were using any Crystal functions - other than DateTime, you're no.  The user of Crystal functions in a selection formula means that Crystal will pull all of the data into memory and do the filtering there.
 
How is the Activity_report table indexed?  When you are doing your selection formula using one or more indexed fields, that will help speed up the report .
 
Other than that, there's not much you can do with that database - Access is not really designed for handling that volume of data.  You could possibly look at importing your data from Access into a more robust database, such as SQL Server, which should improve the speed.
 
-Dell
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 17 Oct 2012 at 10:54am
Another idea that might help.  Create a query in Access to filter the data, then use the query as a data source.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum