Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Efficient Searching of Compound Indexes
Message
From
08/06/1999 17:25:29
 
 
To
08/06/1999 17:21:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00227698
Message ID:
00227704
Views:
22
>Suppose I have a complex index i = a+b+c where a,b and c are all table fields.
>
>I do this so that records are fetched in the desired order as I step along to modify each one after I've found the first one. (assume I may need to modify the records).
>
>At the time I search, I only know 'a' so I don't think a SEEK helps me.
>
>What I've come up with (that seems to work) is ordering the table by i then LOCATE for a=. I've done some tests to verify that LOCATE searches sequentially according to the current tag order.
>
>Is this the best way to accomplish what I want without using a view?
>
>Must optimization be disabled in order to insure that the search works the way I need it to?

SEEK is still the best in conjunction with SET NEAR ON.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform