Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index become non optimized after a while
Message
 
 
To
07/07/2010 15:16:58
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01471721
Message ID:
01471729
Views:
56
Could you post query execution plan for both cases?

<snip>

>Here is the command that is affected by the index when it becomes non optimized:
>
>
>DECLARE @NoMember Integer
>
>SET @NoMember=1
>
>SELECT Thread.Numero,Thread.Title,Thread.Url,Thread.AddDate
> FROM (SELECT TOP 10 Reply.NoThread FROM Reply (NOLOCK)
> WHERE Reply.NoMember=@NoMember ORDER BY 1 DESC) Temp
> INNER JOIN Thread ON Temp.NoThread=Thread.Numero 
>
>
>Right now, the result is:
>
>Duration: 1.7187 Count: 10
>
>When I index again, for a few hours after that, the result would be optimized such as:
>
>Duration: 0.0156 Count: 10
>
>The index that is affected is as follow and is at the end of the script just before the last index that is being built with the INCLUDE syntax:
>
>
>CREATE INDEX [IndexCombo1] ON [Reply] ([NoMember]) INCLUDE ([NoThread]) ON [Reply]
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform