Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making use of dates in index
Message
 
 
À
02/05/2011 22:30:53
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01509138
Message ID:
01509148
Vues:
35
>>IMHO, index on date field (SQL Server 2008) or index on datetime field is all you need. I don't think you need to use any integer conversions, unless you build facts table.
>
>Well, one thing for sure, whenever I remove a date field as part of my where clause, this is much faster. I have found the following sequence:
>
>1. Integer, Boolean and Character fields (Faster)
>2. Add a date field such as StartDate greater than something (Slower)
>3. Add the same date field such as StartDate greater than something AND StartDate less than something (Even slower)

How fragmented your indexes are?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform