Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selectivity and indexes
Message
De
01/08/2007 17:54:59
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
01/08/2007 16:33:56
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01245274
Message ID:
01245312
Vues:
19
>I'm having a discussion with our DBA about adding an index and we seem to have different ideas about what the term 'selectivity' means.
>
>He argues that because the index will have many duplicate values, it will not be selective. (In a table with 5M rows, only 2000 rows will have a unique value for that column, the rest will be NULL.)
>
>I think it will be selective, because any query on that column will return only a single row.
>
>I am trying to speed up an update query that uses the column in the where clause.
>
>This is on a table with a lot of inserts and updates, so I understand there will be some overhead associated with index maintenance.

I'd agree with you. All the nulls will be off on their own branch of the b-tree.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform