Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speeding up like queries
Message
 
To
26/11/2006 09:45:37
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01172471
Message ID:
01172507
Views:
18
>Hi all,
>I'm using a like "%variable_name%" condition in my SQL query for a large table (>1 million records) and it takes a long time for retrieval.
>The field is a character field and is already indexed.
>Any strategies that can be used to speed up this query?
>Thanks in advance.
>Yau

If you must use LIKE , I suggest logging queries and creating custom indexes based on the queries used most often, what ever 'most often' means in your situation.
Previous
Reply
Map
View

Click here to load this message in the networking platform