dbTalk Databases Forums  

How to Increase Performance on Crystal Reports over joins on Betrieve Tables

comp.databases.btrieve comp.databases.btrieve


Discuss How to Increase Performance on Crystal Reports over joins on Betrieve Tables in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
datenisis
 
Posts: n/a

Default How to Increase Performance on Crystal Reports over joins on Betrieve Tables - 08-31-2006 , 01:21 PM






My Crystal Report has joins between 3 tables and I noticed that it
slows down considerably towards the end of the query when I preview the
data.

How can I make it faster? I do not want to create a supertable based
on the joins.


Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: How to Increase Performance on Crystal Reports over joins on Betrieve Tables - 08-31-2006 , 02:40 PM






Whenever you join tables, always be sure that the data is joining on an
index. Sometimes, tables have multiple fields in the index that must
be linked, even though logically, only one field is required, and this
is the most common mistake.

You can use the PCC and other tools to determine whether indices are
available or not, and repair the query accordingly.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive Service & Support Class - 10/2006 ***

datenisis wrote:

Quote:
My Crystal Report has joins between 3 tables and I noticed that it
slows down considerably towards the end of the query when I preview
the data.

How can I make it faster? I do not want to create a supertable based
on the joins.


Reply With Quote
  #3  
Old   
Wayne
 
Posts: n/a

Default Re: How to Increase Performance on Crystal Reports over joins on Betrieve Tables - 09-06-2006 , 05:46 PM



I would suggest taking another step further. I'd take Bill's advice and
work the query in PCC until you're satisfied that it's optimized, then,
if this is a query that is going to be run regularly, turn it into a
stored procedure.

Crystal Reports and applications like it, as good as they are, many
times will only take so far a query that you've designed using their
built-in query designer. The reason is that there are so many SQL
implementations that they must support, and their primary concern is
result set accuracy, not efficiency. Therefore, you never know when,
in the name of result set accuracy, Crystal Reports will generate SQL
that does not result in enough server-side filtering and will depend on
doing at least some client-side filtering, which is an efficiency
killer.

By turning your query (actually, as many queries as you can) into
stored procedures, you can guarantee that no client-side filtering will
happen, simplifying the job that you have to do in CR. Plus, you get
the added benefit of your queries being pre-compiled and waiting for
you in Stored Procedure Cache, at least between restarts of the data
base server.

Just a thought.

Wayne Freeman
Analytica Business Systems
www.analyticabiz.com

datenisis ha scritto:

Quote:
My Crystal Report has joins between 3 tables and I noticed that it
slows down considerably towards the end of the query when I preview the
data.

How can I make it faster? I do not want to create a supertable based
on the joins.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.