Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making use of dates in index
Message
 
 
To
02/05/2011 22:30:53
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01509138
Message ID:
01509148
Views:
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)

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


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform