We are in the process of converting a particular report from 9022 to 9031 that uses the prdistrib table and has been written in oledb.
However this report is not completing refreshing and times out after 40 minutes of refreshing. if we break this report to go against a smaller set of data it completes fine.
Is anybody willing to share any pointers or tips that I can use to get this report to complete refreshing. Remember this report is written in oledb and I would like to avaoid full table scans since the number of records in this table is around 15 million.
I just ran into a similar issue last week. If the cause is the same (at this point, I couldn't say if it is), then the problem isn't the sql but the bursting process. You didn't mention if your report is bursting, so at this point, I'll assume it is.
Our problem was that the bursting process (which was by company/accounting unit) was timing out internally on the LBI server. That happened because the report was very large and because our financial liaisons had rights to see every accounting unit. The bursting process timed out because of the way I cached the report in my LBI setup for that report. On the Report Details page, check out your >Data Filtering>Bursting Options page -- you may have the Cache Files options set to Creation Time. If you change this to View Time, the report won't burst until someone views it. This means your report will publish quicker. However, if you do have some users who have a large set of viewing rights, their particular attempt to view the report may run into problems. Users who have only a few rights should be able to view with no problems.
Behind the scenes the problem was caused because our LBI server is running on a Windows Standard edition server -- which has a max of 4 gb of ram available. The bursting process was running out of space. Our I.T. group is now looking at a work-around for this limitation but hasn't come up with anything yet.
This is not a bursted report. i am just refreshing the report right now. I am using an index to filter the reprot where it uses 4 fields:
1.company, acct_uint , account and date.
This report has not been published to lbi yet. I am using the crystal designer to refresh the report.
the record selection is dst_acct_unit <> 80060. It is showing 4006 of 4006.