Author Topic: report performance issue  (Read 1049 times)

Offline dfite

  • Full Member
  • ***
  • Posts: 40
  • Forum Citizenship: +0/-1
report performance issue
« on: 07 Aug 2009 11:24:00 pm »
I have a pretty straightforward list report that when run never finishes. (I'm using reportnet 1.1).  When I query the data view in Oracle the contents come back within 30 seconds.  Any thoughts?

So, when in Oracle I run this statement, it returns quickly:
SELECT * FROM RPT$RPT_1128_MAIN
WHERE TO_DATE('20071201', 'YYYYMMDD') BETWEEN START_DT AND END_DT
AND       FDATE BETWEEN  ADD_MONTHS(TO_DATE('20071201', 'YYYYMMDD'), -11) AND TO_DATE('20071201', 'YYYYMMDD')

Yet when I run my report with these filters, the report runs forever:

to_date([CPAS_Reports].[RPT$RPT_1128_MAIN].[START_DT]) < ?pUserDate?

to_date([CPAS_Reports].[RPT$RPT_1128_MAIN].[END_DT]) > ?pUserDate?

to_date([CPAS_Reports].[RPT$RPT_1128_MAIN].[FDATE]) < ?pUserDate?

to_date([CPAS_Reports].[RPT$RPT_1128_MAIN].[FDATE]) > _add_years(?pUserDate?, -1)






Offline the_xxx

  • Full Member
  • ***
  • Posts: 43
  • Forum Citizenship: +1/-0
Re: report performance issue
« Reply #1 on: 24 Sep 2010 04:50:03 am »
Instead of < or > signs , try using between.