Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #291

Re: SQL Server 2008 R2 - Reorganize Index taking too long

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: SQL Server 2008 R2 - Reorganize Index taking too long
Date Fri, 6 May 2011 10:44:32 +0000 (UTC)
Organization Erland Sommarskog
Lines 25
Message-ID <Xns9EDD819F48961Yazorman@127.0.0.1> (permalink)
References <8c0611f4-0dd5-42b5-babf-61bc3610f30d@x1g2000yqb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Date Fri, 6 May 2011 10:44:32 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="G7+Jz22XqYCG8C6rb1H3YA"; logging-data="3778"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+yx6vjtGxJqGtE7dYQrDX"
User-Agent Xnews/2005.10.03 Mime-proxy/1.4.c.4 (Win32)
Cancel-Lock sha1:2o5F20+dbV7h7sBXVqDdgWr0Pqo=
Xref x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:291

Show key headers only | View raw


SGoncalves (goncalves.sergiom@gmail.com) writes:
> I'm administering a SQL Server 2008 R2 and I have a daily maintenance
> plan that backs up a database and then reorganizes it's indexes and
> updates statistics. Lately the reorganize index task is taking over 8
> hours to complete.
> 
> This is not a normal behavior since the rebuild indexes task I run on
> weekends takes less then an hour.
> The database is almost 60 GB in size.
 
Stop reorganising the indexes. Monitor your fragmentation, to see whether 
any action is needed at all.

Reorganisation uses a kind of bubble-sort algorithm, and in some situation 
it can take some time to handle a fairly small amount of fragmentation.



-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SQL Server 2008 R2 - Reorganize Index taking too long SGoncalves <goncalves.sergiom@gmail.com> - 2011-05-06 02:09 -0700
  Re: SQL Server 2008 R2 - Reorganize Index taking too long Erland Sommarskog <esquel@sommarskog.se> - 2011-05-06 10:44 +0000
    Re: SQL Server 2008 R2 - Reorganize Index taking too long SGoncalves <goncalves.sergiom@gmail.com> - 2011-05-06 06:59 -0700
    Re: SQL Server 2008 R2 - Reorganize Index taking too long Gene Wirchenko <genew@ocis.net> - 2011-05-06 10:23 -0700
      Re: SQL Server 2008 R2 - Reorganize Index taking too long Erland Sommarskog <esquel@sommarskog.se> - 2011-05-06 23:49 +0200
        Re: SQL Server 2008 R2 - Reorganize Index taking too long SGoncalves <goncalves.sergiom@gmail.com> - 2011-05-09 03:00 -0700
          Re: SQL Server 2008 R2 - Reorganize Index taking too long Erland Sommarskog <esquel@sommarskog.se> - 2011-05-09 23:59 +0200
            Re: SQL Server 2008 R2 - Reorganize Index taking too long SGoncalves <goncalves.sergiom@gmail.com> - 2011-05-10 03:44 -0700
              Re: SQL Server 2008 R2 - Reorganize Index taking too long Henk van den Berg <hvandenberg@xs4all.nl> - 2011-05-10 12:51 +0200
                Re: SQL Server 2008 R2 - Reorganize Index taking too long Henk van den Berg <hvandenberg@xs4all.nl> - 2011-05-10 12:53 +0200
              Re: SQL Server 2008 R2 - Reorganize Index taking too long Erland Sommarskog <esquel@sommarskog.se> - 2011-05-10 23:36 +0200
                Re: SQL Server 2008 R2 - Reorganize Index taking too long SGoncalves <goncalves.sergiom@gmail.com> - 2011-05-11 03:22 -0700

csiph-web