PDA

View Full Version : Controlling execution of a Multi Query report


McCormick
09-30-2005, 12:48 PM
I am using Report Builder 3.0.5 under Oracle 8.1.7

I have a Multi Query data model that I wish to execute in a certain
manner.

The Parent Query creates a sorted list of customer IDs based on the
account's status and last activity date. The single table involved is
huge, 22 million records, and has no index that covers all the columns
in the query. Running this query in SQL*Plus creates a list of ~144,000
records in about 20 minutes, which is acceptable.

The Child Query takes the customer ID and sums a small number of
records. It also references a single huge table, 200 million records,
but has a good index and given the customer ID is very fast.

I have a Group to Group link between these queries with the customer ID
returned in the Parent Query referenced in the WHERE clause of the
Child Query.

What I would like the report to do is build the initial list of 144,000
customer ID's in the Parent Query before it touches the Child Query. I
"saw" the report do this once. A large initial delay followed by rapid
page creation. Now, though, it drags through page by page as if Reports
has "helpfully" combined the two queries into a giant resource sucking
statement.

How can I encourage the Parent Query to completely execute before the
Child Query?

Thanks!

Mike McCormick


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service