Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimisation as per execution plan
Message
De
28/10/2011 09:36:18
Peter Larsson
Developer Workshop
Suède
 
 
À
25/10/2011 10:34:02
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01526170
Message ID:
01527531
Vues:
44
J'aime (1)
SQL Server is cost-based. That means Query Processor (QP) evaluates a number of scenarios to determine how it should attack the problem and how it should return the rows.
So even an insert/delete/update of 1 row can make a huge change between a scan or a seek in your execution plan.

SQL Server prefers scan as it per definition is sequential. Seeks are random in nature. The underlying disks (SSD or SCSI) doesn't matter. Yet.

You have probably encountered a tipping point where QP calcuates that a SEEK together with a KEY LOOKUP is less costly than a SCAN to get all columns in one sweep.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform