Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Query slowdown issue Post Reply Post New Topic
Author Message
pokerace
Newbie
Newbie


Joined: 19 Sep 2007
Online Status: Offline
Posts: 5
Quote pokerace Replybullet Topic: Query slowdown issue
    Posted: 19 Sep 2007 at 7:35am
Hello,

I am using version 10 to query some sales data from a retail database. I don't know what the database is built on, but I am connecting via ODBC protocol.

I am currently only using one table, and only querying one field to make this report as simple as possible before I expand. The selection criteria is sale date and the only field in the report is item number. If I query using 9/13 and later, the results are returned very quickly (over 15,000). If I query with a sale date before that, the report takes a very long time to go through records. It should be relatively the same amount of data, but at the bottom right of Crystal Reports, where is shows the number of records queried, it averages about 50 per minute on dates before the 13.

Is there anything I can try to figure out what the problem is?
IP IP Logged
pokerace
Newbie
Newbie


Joined: 19 Sep 2007
Online Status: Offline
Posts: 5
Quote pokerace Replybullet Posted: 19 Sep 2007 at 9:36am
To follow up, it seems as if I can pull the data if I don't limit the date(s) in the selection criteria, in which case I will have over a million records. When I try to specify the date however, is accessed the database very slowly. Seems like it gets to 6 records and then just stops.

Any ideas as to why is zips through a million records when the date is not specifies, but slows to a crawl when I select a specific dates?
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 19 Sep 2007 at 1:37pm
I don't know. But I would do Show SQL Query and see if the date filter is being passed to the database or not. You want SQL to do the filtering instead of making CR do it. Also, is there an index on the date field?
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.