Friday, March 23, 2012

Extent fragmentation still high after index drop/create

hello everyone,

we dropped the clustered & nonclustered indeces on a table, then
rebuilt them. logical fragmentation is near zero, but extent
fragmentation is about 40%. how can this be if the indeces are brand
new?Here's a whitepaper you should read:
http://www.microsoft.com/technet/tr...ze/ss2kidbp.asp

Also, what effect is the extent fragmentation having on the performance of
your workload? (i.e. do you have empricial evidence that the workload perf
is decreasing with increasing extent fragmentation - to justify the overhead
of these index operations?)

Regards,

Paul.

--
Paul Randal
DBCC Technical Lead, Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.
<gary@.dba723.net> wrote in message
news:fb0df63.0310090956.62c752a7@.posting.google.co m...
> hello everyone,
> we dropped the clustered & nonclustered indeces on a table, then
> rebuilt them. logical fragmentation is near zero, but extent
> fragmentation is about 40%. how can this be if the indeces are brand
> new?|||Thanks for the response, Paul!

A particular query on my test server with logical and extent frag near
zero ran in about 12 seconds (very complex query). The same query on
my reporting box took over a minute, with some of the largest tables
included at about 40% extent frag, near zero logical frag.

"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message news:<3f86d98b$1@.news.microsoft.com>...
> Here's a whitepaper you should read:
> http://www.microsoft.com/technet/tr...ze/ss2kidbp.asp
> Also, what effect is the extent fragmentation having on the performance of
> your workload? (i.e. do you have empricial evidence that the workload perf
> is decreasing with increasing extent fragmentation - to justify the overhead
> of these index operations?)
> Regards,
> Paul.
> --
> Paul Randal
> DBCC Technical Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights.
> <gary@.dba723.net> wrote in message
> news:fb0df63.0310090956.62c752a7@.posting.google.co m...
> > hello everyone,
> > we dropped the clustered & nonclustered indeces on a table, then
> > rebuilt them. logical fragmentation is near zero, but extent
> > fragmentation is about 40%. how can this be if the indeces are brand
> > new?

No comments:

Post a Comment