Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized index not optimized
Message
 
 
À
31/10/2011 16:55:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01527723
Message ID:
01527734
Vues:
30
>>You may want to start reading from this article
>>Parameter Sniffing
>>
>>and then proceed with this article
>>http://www.sommarskog.se/query-plan-mysteries.html
>
>I read the first article and applied some of that. The OPTION RECOMPILE completely destroyed the execution plan. Now, it doesn't want to use the index and falls in the lookup mode. Then, I tried the OPTIMIZE FOR approach and it forced it to use the index, but only one one server, which means that the same database setup on two servers may not react the same in the execution plan based on what was executed before.
>
>I will read the second article now.

Make also sure that statistics are up to date.
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