Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What are the best indexes to have for a filter ?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975956
Message ID:
00976092
Views:
8
In addition to other's good advice - you can "SET EXACT OFF" and index search on a partial key.
>Hi
>
>I am doing a SET KEY on a table and then I need to run a filter on the records :
>
>SET FILTER TO "[" + Department + Section + Unit + "]" $ cDepSecUnit)
>
>where cDepSecUnit is a list of Department+Section+Unit contained in []. Eg: [Dep1Sec1Unit1][Dep2Sec2Unit2]...
>
>For this filter to be optimised, do I need an index on each of Department, Section, and Unit individually, or do I need one index with all three fields?
>
>Any help would be appreciated. Thanks.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform