×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Reports running faster

Reports running faster

Reports running faster

(OP)
I have a several Defined fileds in my report and it is taking for ever to run the report in painter...Is there anything I can do to make them display faster?


Thanks,

RE: Reports running faster

The first question I have is:

Does it run faster without the DEFINEd fields?

If not, then they don't matter. If so, then are you SELECTING on DEFINEd fields? And, could you post the MFD and DEFINEs, so we can guess at what is causing the slowdown?

RE: Reports running faster

(OP)
Once I put in the Define fields it runs a lot slower...I wait 3-5 minutes for the report to come up.


2007Sales/P12= IF AGENCY_SALES_V.AGENCY_SALES_V.YR EQ '2007' THEN AGENCY_CURR_SALES ELSE 0

2008Sales/P12= IF AGENCY_SALES_V.AGENCY_SALES_V.YR EQ '2008' THEN AGENCY_CURR_SALES ELSE 0

AgencyUtilization/P12= IF 2007Sales GT 0 THEN AGENCY_SALES_V.AGENCY_SALES_V.AGENCYID

2008FutureSales/P12= IF AGENCY_SALES_V.AGENCY_SALES_V.YR EQ 2008
AND AGENCY_SALES_V.AGENCY_SALES_V.MTH GE 1
THEN AGENCY_SALES_V.AGENCY_SALES_V.AGENCY_FUT_SALES
ELSE 0

2007pax/P12= IF AGENCY_SALES_V.AGENCY_SALES_V.YR EQ 2007 THEN AGENCY_SALES_V.AGENCY_SALES_V.AGENCY_CURR_PAX ELSE 0

RE: Reports running faster

In your request, are you SELECTING (using WHERE) on the DEFINEd fields? If so, and the calculation can't be passed to the engine, then all records must be returned, so it can be evaluated by the client. If you look at the trace (assuming it's SQL based), you should see a message that optimization was prevented, and why.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close