Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to index
Message
From
05/04/2000 18:48:35
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00355970
Message ID:
00355973
Views:
18
Big rule of thumb, or just a plain ole' big no-no is to use Trim in indexes. Foxpro does not work with variable length indexes.

Example

Column 1 Column 2
"10" "1"
"1" "01"

If you have index of trim(column1) + trim(column2), both index keys from above will be "101".

PF

>Is there a rule of thumb to follow when using index expressions? Is it common to index on something like Upper(AllTrim(FieldName))? Are there performance issues in doing this?
>Any thoughts?
>TIA

(On an infant's shirt): Already smarter than Bush
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform