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:
01381147
Vues:
33
>>Can you tell a bit more about the structure of your tables and what exactly you're trying to achieve with this query?
>>
>>Also can you do a simple join with Monitor table instead?
>
>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.

This is a bit strange. What indexes do you have? EXISTS and INNER JOIN should perform the same, IMHO, but I would be curious to see the difference in speed.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform