Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Something slowing down from the application
Message
De
24/03/2008 20:10:46
 
 
À
24/03/2008 19:58:56
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01305122
Message ID:
01305179
Vues:
8
I have found the cause of all this. If the OR clause is in there, this causes the problem. As soon as I remove the OR clause, everything is ok.

So, this takes 56 seconds:
SELECT TOP 101 Client.Numero,Client.Name,Client.Street
 FROM Client
 WHERE (Client.Name LIKE '242401%' OR Client.Altern_Name LIKE '242401%') AND Client.NoInvoice=3
 ORDER BY Client.Name
And, this is instant:
SELECT TOP 101 Client.Numero,Client.Name,Client.Street
 FROM Client
 WHERE Client.Name LIKE '242401%' AND Client.NoInvoice=3
 ORDER BY Client.Name
And, I double checked one more time. I do have index on Client.Name and Client.Altern_Name. I would say this is the only place in our application that I have this. This is why I never experienced it before.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform