Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execution Plan differs based on pkfield vs multifields
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Titre:
Execution Plan differs based on pkfield vs multifields
Divers
Thread ID:
01531644
Message ID:
01531644
Vues:
75
If I issue select pk from MyTable where MyNonUniqueColumn = 123

the execution plan shows it uses an Index Seek on MyNonUniqueColumn index (is good)

if instead I issue select pk,field2,field3,etc,etc. from MyTable where MyNonUniqueColumn = 123

the execution plan now shows it's using a Clustered Index Scan on my PK index!

What's going on here?
Brandon Harker
Sebae Data Solutions
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform