Quote from kevind on 09/06/07 at 12:36:50:The Root cause problem with this report is that the Invoice Date field in BKARHINV is not Indexed.
Lynn / Allan - Could an index for this field be added to this table?
I do not know why the V8 of this report ran so fast. Both are accessing the DBA data with ODBC.
By using INVTXN (where invoice date IS indexed), the report can be made to run very fast.
Further investigation reveals that I made more than 1 change when I used INVTXN to provide a Invoice date index.
I also changed the order of linking in the report.
So here is the bottom line:
No Invoice date index: 8 minutes to run with original table links
7 seconds to run with revised links (BKARHINV as root table instead of BKARCUST)
With an Invoice date index: 1 Minute 30 seconds with Original table Links
2 seconds to run with revised links
Other Times Time to Add Index through Table Designer: 10 Minutes (72Meg file) (Pervasive had to expand the file a couple of Meg and allocate Index pages)
Time to remove index through Table Designer: 20 seconds
Time to Add Index again through table designer: 14 seconds (internal index pages were already allocated, just needed to re-index 49650 records)