Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exact and deleted recs - did everybody know this but me?
Message
From
25/07/2006 08:49:35
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01139176
Message ID:
01139639
Views:
11
>>>>Do you have an index on ALLTRIM(BATCHNO)? I think we should avoid ALLTRIM in index expressions like plague.
>>>
>>>Yes, Not duplicating the index statement exactly in the SQL clause causes greatly reduced performance. i.e. using just BATCHNO when the index is ALLTRIM(BATCHNO) will not optimize.
>>
>>You should not use ALLTRIM() in indexes. Far better to INDEX ON PADR(ALLTRIM(BATCHNO),10) and then to SELECT WHERE PADR(ALLTRIM(BATCHNO),10) = "batchno "
>>
>>>
>>>Also getting the SET EXACT and SET ANSI settings correct also impacts greatly.
>>>
>>>Rushmore is a great piece of technology, once you understand it.
>
>Why batchNo alone would not work? It is because it could be:
>
>
>     7
>  22
>123
>   56
>
>
>etc.?

Yes
Previous
Reply
Map
View

Click here to load this message in the networking platform