Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOP N function takes forever in CR 10

Status
Not open for further replies.

grom71

IS-IT--Management
Oct 23, 2003
56
GB
Hi,
I have a report which has generated 500,000+ records. These records are sorted by a group then against this group is a summary value. When I use the standard top N function "group sort expert" to give me the top 30 values for that group, the report takes ages to recompile...
When I mean ages I mean I left it 15 minutes and it hadnt finished !
Does anyone know else have this issue ?
I've tried it with V9 and it does the same....
I think I may have to ditch the report and look at other ways to get what I want...
Any suggestions ?
Steve




 
Steve,

The reason that it is taking so long is the report does a complete re-run over the data.

The best way to complish the report is to create a stored procedure in the database that summarises the value that you are basing the "Top N" sort on. Crystal will then only need to pass through the data for the report - not the sorting as well.

Cheers,
paulmarr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top