Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index optimizing in SP1
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
01059937
Message ID:
01059959
Views:
13
>It looks like this was supposed to be fixed in SP1, "Indexes on STR() are penalized during Rushmore optimization if SET ANSI is OFF". Unfortunately, we're still seeing the same problem. We've got a 400MB table that has this index:
<snip>

No, it's different problem. In your case it's related to SYS(11) function which is not Rushmore optimizable for whatever reason anymore. You can see that if you replace it with DTOS()
CLEAR 
SET DELETE OFF
SYS(3054, 11)
CREATE TABLE c:\testopt (cust_num C(8), trans_date D)
INDEX ON STR(VAL(CUST_NUM),8) + DTOS(TRANS_DATE)  TAG custhist2
SELECT * ;
  FROM testopt;
WHERE STR(VAL(CUST_NUM),8) + DTOS(TRANS_DATE)   = "  633621" ;
INTO CURSOR Dummy
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform