Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speeding up like queries
Message
 
À
26/11/2006 09:45:37
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01172471
Message ID:
01172507
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform