Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making use of dates in index
Message
De
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:
01509146
Vues:
34
>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)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform