Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore Optimizing an SQL contains statement
Message
From
28/11/1997 19:17:45
 
 
To
28/11/1997 10:09:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062716
Message ID:
00062815
Views:
24
As Barbara said, this query is not Rushmore optimizable.

Just a suggestion (I have no idea if it's better): try to use

"Cover" $ name

instead of

name like "%Cover%"

It might work a little faster.

Also, you may want to take a look at PHDBase product. It can do fuzzy searches ar incredible speed.

Vlad

>Does anybody know of a way to rushmore optimize the following SQL
>statement?
>
>Select * from part where name like '%Cover%'
>
>I have an index on name and as long as I am searching for an equality, name
>= 'text', statement or LIKE 'Cover%', begins with, the SQL statement is
>optimized. But if I want to search for a record where the name contains a
>specified text or ends with the text, the statement is not optimized.
>
>Any help would be greatly appreciated
>
>Thanks --
>David Wilkerson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform