Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore'ing substrings
Message
From
21/01/2003 16:19:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Rushmore'ing substrings
Miscellaneous
Thread ID:
00743958
Message ID:
00743958
Views:
68
Is there a way to optimize a select when looking for substrings ($) of a character field. A table (500,000+ records) on a LAN with an index on UPPER(ALLTRIM(somefield)) is acceptably fast when we do this...

SELECT * FROM sometable WHERE ;
UPPER(ALLTRIM(somefield)) = UPPER(ALLTRIM(variable))

... but if we ...

SELECT * FROM sometable WHERE ;
UPPER(ALLTRIM(variable)) $ UPPER(ALLTRIM(somefield))

... it is horribly slow. Any suggestions on how to speed that up?

Thank you.
Next
Reply
Map
View

Click here to load this message in the networking platform