Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for more optimization
Message
 
 
À
12/02/2009 00:09:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01381114
Message ID:
01381254
Vues:
37
Michel,

You should examine the query plan. If you see table scans on large tables it's most definately bad. If you see it estimating more rows than you think should be output by a step then you may need to HINT the SQL to get it to use a better index for a JOIN or a WHERE. And that assumes you have an index that can be used to optimize the piece.

>The simple join was not optimized. I had results in 0.3 seconds where I get results in 0.001 second with the 2nd approach. But, this seems to create a deadlock. So, I will use the EXISTS approach and we'll see how it goes.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform