May 18, 2009 at 6:21 am
Hello,
This may sound like a silly question, but if a database has been moved to a new set of disks (SAN), would it be a good idea to rebuild all the indexes as a apposed to running indexdefrag?
I apprieciate pages, extents etc, but wondered if the old underlying disks were fragmented is it recomended that a full reindex is done on the new disks?
Thanks
May 18, 2009 at 6:29 am
Index fragmentation and disk fragmentation are different things. Indexrebuild and index defrag (and the 2 SQL 2005 replacements to them) fix index fragmentation. They are neither affected by nor do they fix disk fragmentation.
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
May 18, 2009 at 6:31 am
sqlrumble (5/18/2009)
Hello,This may sound like a silly question, but if a database has been moved to a new set of disks (SAN), would it be a good idea to rebuild all the indexes as a apposed to running indexdefrag?
I apprieciate pages, extents etc, but wondered if the old underlying disks were fragmented is it recomended that a full reindex is done on the new disks?
Thanks
only if you don't normally have a maintenance window to reindex the databases and this database move has given you an opportunity, even then just reindex the indexes that are fragmented.
by moving the database files to a new drive you ahve removed fragmentation at the drive level.
Fragmentation within the database (empty pages, extents out of order) is independent of that.
---------------------------------------------------------------------
May 18, 2009 at 6:32 am
Gail, stop it! give someone else a chance! 😀
---------------------------------------------------------------------
May 18, 2009 at 6:34 am
george sibbald (5/18/2009)
Gail, stop it! give someone else a chance! 😀
Type faster in future. 😉
😛
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
May 18, 2009 at 6:41 am
I think i have started a 'SQL-RUMBLE'.
Thanks for the responses.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply