Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This query is slow
Message
 
À
16/10/2004 04:10:42
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00951748
Message ID:
00951943
Vues:
12
In many cases, it is worthless to have an index on a 2-values field. Say you have 1,000,000 rows and that 40% are 0 and 60% are 1 what will be the added value of this index? More time will be lost going from the index pages to real data pages then a table scan will take.



>>Because this flag is only has two value (0,1). I read some articles. They said in this case. Index is not very useful.
>>
>>
>>Thanks
>
>If this is written, then it is better not to read these articles.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform