Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best index expression?
Message
From
18/04/2005 16:16:18
 
 
To
18/04/2005 14:35:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01005870
Message ID:
01005962
Views:
18
I agree with Sylvain. The Scan for is optimizable, although just for Borislav's delight, I'd just change the final code as:
*-- Have an index on these two fields:
INDEX ON EMPTY (InsCommand) TAG E_InsCmd
INDEX ON SearchTB TAG SearchTB
SET ORDER TO

LOCATE ;
 FOR SearchTB = m.lcSearch AND NOT EMPTY (InsCommand) ;
 WHILE !plError
If I understood correctly the use of plError. It looks like a parameter, but if this is the case, I can't imagine what does it have to do with the condition...

Cheers,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform