Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Something slowing down from the application
Message
De
26/03/2008 09:33:00
 
 
À
26/03/2008 09:23:47
Walter Meester
HoogkarspelPays-Bas
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:
01305638
Vues:
7
>The problem certainly has to do with poor optimization. In the first case SQL server cannot optimize the query because it has no clue on what is going to be in @Altern_ID. Therefore it is scanning indexes. The reason the TOP 1 is faster is because it stops scanning when it finds a match.

If that is the case, how can we explain that with the other field, I never had this problem?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform