I think it's critical when you are selecting records for use in your report. It's more efficient to tell the server you don't want it, than to make the selection within the report.
Check the report-generated SQL (under [Database] on the menus) against your actual report selection. Selection rules that don't appear in the SQL are being done by the report, and this should be avoided if possible.
The case you showed is a selection from a field on a record you already have. I've always assumed that this is done efficiently by Crystal - if anyone knows better, please let me know.
Take a look at database->show SQL query. Only the work that will be performed on the database will appear in the query. You might also try using a SQL expression and then check if that gets passed. Using the Xtreme database, here's how the SQL expression would look
I'm now little confused as appears that two of these replies are contradicting each other.
If my formula's or select statements appear in the 'show SQL query' in Crystal are they being performed by the server or by the report?
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.