Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Something slowing down from the application
Message
From
26/03/2008 09:33:00
 
 
To
26/03/2008 09:23:47
Walter Meester
HoogkarspelNetherlands
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01305122
Message ID:
01305638
Views:
6
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform