Hi there,
I am running Crystal XI R2 against a MS SQL Server.
I have 2 commands which are both UNION queries. If I add both commands to a report and link them with an Inner Join, it runs fine.
If I then group by one field (which is indexed) from one of the comands, then the report suddenly runs incredibly slowly, selecting 2-3 records every 5-10 secs. Without the grouping, the records are selected at a rate of about 500 per second.
Why?
I am running Crystal XI R2 against a MS SQL Server.
I have 2 commands which are both UNION queries. If I add both commands to a report and link them with an Inner Join, it runs fine.
If I then group by one field (which is indexed) from one of the comands, then the report suddenly runs incredibly slowly, selecting 2-3 records every 5-10 secs. Without the grouping, the records are selected at a rate of about 500 per second.
Why?