October 30, 2011 at 4:59 pm
Thanks Jeff - It's Standard Edition. I'll add the clustered index tomorrow on EventTime and look into indexed views.
Once I have something to report I'll update the post!
Thanks everyone for all their help!
October 30, 2011 at 5:07 pm
jackimo (10/30/2011)
Thanks Jeff - It's Standard Edition. I'll add the clustered index tomorrow on EventTime and look into indexed views.Once I have something to report I'll update the post!
Thanks everyone for all their help!
Don't waste your time on adding the clustered index until you read about indexed views! 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 30, 2011 at 5:44 pm
David Moutray (10/28/2011)
Dropping an index and then recreating it will also bypass the transaction log, however.
Nope and creating a clustered index is fully logged in full recovery. Everything in SQL is logged. Dropping then recreating the clustered index will incur far more logging than just rebuilding it, as the drop requires that all nonclustered indexes be rebuild, the create also requires that all the nonclustered indexes be rebuild.
So, log impact for rebuild of a clustered index = size of the clustered index + overhead
Log impact for drop and create of clustered index = 2*total size of all nonclustered indexes + size of clustered index + overhead
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply