Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varchar vs char
Message
De
03/11/1999 09:17:16
 
 
À
03/11/1999 09:04:04
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Divers
Thread ID:
00285417
Message ID:
00286064
Vues:
21
>Is there any beneifit or disadvantage to indexing on varchar() vs char() that you are aware of?

There is a golden rule - smaller is better. The smaller the row, the more rows per page, the more data retrieved in a page I/O. The same holds for indexes. The smaller the key, the more keys per page, the more data retrieved in a page I/O. Also, there is incentive to keeping the size of the clustered key small since it becomes part of the key in non-clustered indexes.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform