I'm running a crystal report (CR 8.5) against a Notes R6 database via a system ODBC connection. The report runs correctly but is pretty slow. The record selection I'm using is as follows:
Select {?TimePeriod}
Case "":
{CR_View_for_Steve.OpenedOn} >= minimum({?DateRange}) and {CR_View_for_Steve.OpenedOn} <= maximum({?DateRange})
Case "All":
{CR_View_for_Steve.OpenedOn} >= Date(1900,01,01)
Case "Today":
{CR_View_for_Steve.OpenedOn} in CurrentDate
Case "Last 7 Days":
{CR_View_for_Steve.OpenedOn} in Last7Days
Case "This Month":
{CR_View_for_Steve.OpenedOn} in MonthToDate
Case "Last Month":
{CR_View_for_Steve.OpenedOn} in LastFullMonth
Case "Last 90 Days":
{CR_View_for_Steve.OpenedOn} <= currentdate and {CR_View_for_Steve.OpenedOn} >= (currentdate - 90)
Case "Last 6 Months":
{CR_View_for_Steve.OpenedOn} <= currentdate and {CR_View_for_Steve.OpenedOn} >= (currentdate - 183);
and Uppercase({?SearchString}) in Uppercase({CR_View_for_Steve.ShortDescription})
I have checked to see what SQL expression was created and this is all that was created:
SELECT
CR_View_for_Steve."OpenedOn", CR_View_for_Steve."Resolution", CR_View_for_Steve."ShortDescription", CR_View_for_Steve."Ticket", CR_View_for_Steve."User"
FROM
"CR_View_for_Steve" CR_View_for_Steve
ORDER BY
CR_View_for_Steve."OpenedOn" ASC
Can anyone suggest how to improve my performance speed?
Thanks
Select {?TimePeriod}
Case "":
{CR_View_for_Steve.OpenedOn} >= minimum({?DateRange}) and {CR_View_for_Steve.OpenedOn} <= maximum({?DateRange})
Case "All":
{CR_View_for_Steve.OpenedOn} >= Date(1900,01,01)
Case "Today":
{CR_View_for_Steve.OpenedOn} in CurrentDate
Case "Last 7 Days":
{CR_View_for_Steve.OpenedOn} in Last7Days
Case "This Month":
{CR_View_for_Steve.OpenedOn} in MonthToDate
Case "Last Month":
{CR_View_for_Steve.OpenedOn} in LastFullMonth
Case "Last 90 Days":
{CR_View_for_Steve.OpenedOn} <= currentdate and {CR_View_for_Steve.OpenedOn} >= (currentdate - 90)
Case "Last 6 Months":
{CR_View_for_Steve.OpenedOn} <= currentdate and {CR_View_for_Steve.OpenedOn} >= (currentdate - 183);
and Uppercase({?SearchString}) in Uppercase({CR_View_for_Steve.ShortDescription})
I have checked to see what SQL expression was created and this is all that was created:
SELECT
CR_View_for_Steve."OpenedOn", CR_View_for_Steve."Resolution", CR_View_for_Steve."ShortDescription", CR_View_for_Steve."Ticket", CR_View_for_Steve."User"
FROM
"CR_View_for_Steve" CR_View_for_Steve
ORDER BY
CR_View_for_Steve."OpenedOn" ASC
Can anyone suggest how to improve my performance speed?
Thanks