RIPARAM Slow Record Retrieval

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Mike_Cutts
Posts: 20
Joined: Tue Oct 10, 2017 12:44 pm

RIPARAM Slow Record Retrieval

Post by Mike_Cutts » Wed Aug 11, 2004 11:55 am

Hi,____We have a view in a Sybase database which contains around 51,000 records. I have designed a report against this view and fired it up via a control table text file. ____One of the entries in the text file passes a value to the report (for argument^s sake lets call the optional entry Text1). I have then created a calculated field on the report whose expression looks something like RIPARAM(^Text1^)____Following this I created a filter on the report to only include records where a field in the view matches the value contained in the calculated field.____The problem is that when the report is executed it takes an age to bring through any data. However, if I put the contents of the Text1 entry directly into the filter, the correct record is displayed more-or-less straight away.____Any help (if you can understand the terrible explanation) on this problem would be greatly appreciated.____Thanks,____Mike.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: RIPARAM Slow Record Retrieval

Post by kfleming » Thu Aug 12, 2004 8:04 am

The reason this happens is that the filter expression is being evaluated locally rather than being sent to the SQL engine.__You would be better off to use one of the new parameteRR fields in place of the RIPARAM or else use RI_WHERE instead of RI_FILTER so that the where is passed directly to SQL.____Kathleen__R&R Support

Mike_Cutts
Posts: 20
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: RIPARAM Slow Record Retrieval

Post by Mike_Cutts » Fri Aug 13, 2004 4:50 am

Thanks for that, will give it a try.

Post Reply