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?
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?
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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.