Hi All,
I had a question about indexes and re-indexing.. I kinda stepped into this job, and have been reading up...lol
Anyways, performance is down, and I followed some of the steps outlined in this thread,, thread962-1370668
I created a maintenence plan to re-index, and the log looks like it did.
On the showcontig reports created from the thread mentioned, I have a few that whow both logical scan fragmentation and extent scan fragmentation..
On the ones where it did not show the logical scan fragmentation,, there was no change,, on the ones where there were both listed,, there was a huge improvement,,,
I was hoping that someone could tell me what the difference is between the logical scan and extent scan fragmentation,,,
also, why one would be successful in re-indexing,, and why the other would not make a difference..
and what, if anything, I can do to fix the ones that didn't change...
here is the before and after of 2 tables...
Before...
DBCC SHOWCONTIG scanning 'WORKPENDHISTORY' table...
Table: 'WORKPENDHISTORY' (1300915706); index ID: 0, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 161948
- Extents Scanned..............................: 20337
- Extent Switches..............................: 20336
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.54% [20244:20337]
- Extent Scan Fragmentation ...................: 54.46%
- Avg. Bytes Free per Page.....................: 329.0
- Avg. Page Density (full).....................: 95.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
after...
DBCC SHOWCONTIG scanning 'WORKPENDHISTORY' table...
Table: 'WORKPENDHISTORY' (1300915706); index ID: 0, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 161948
- Extents Scanned..............................: 20337
- Extent Switches..............................: 20336
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.54% [20244:20337]
- Extent Scan Fragmentation ...................: 54.46%
- Avg. Bytes Free per Page.....................: 329.0
- Avg. Page Density (full).....................: 95.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
that one there did not have the logical scan fragmentation,,, and there really was no difference...
before....
DBCC SHOWCONTIG scanning 'CUSACCT' table...
Table: 'CUSACCT' (29243159); index ID: 1, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 63152
- Extents Scanned..............................: 7940
- Extent Switches..............................: 7939
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.42% [7894:7940]
- Logical Scan Fragmentation ..................: 2.03%
- Extent Scan Fragmentation ...................: 47.96%
- Avg. Bytes Free per Page.....................: 154.6
- Avg. Page Density (full).....................: 98.09%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
after...
DBCC SHOWCONTIG scanning 'CUSACCT' table...
Table: 'CUSACCT' (29243159); index ID: 1, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 67377
- Extents Scanned..............................: 8444
- Extent Switches..............................: 8443
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.75% [8423:8444]
- Logical Scan Fragmentation ..................: 0.00%
- Extent Scan Fragmentation ...................: 3.16%
- Avg. Bytes Free per Page.....................: 652.5
- Avg. Page Density (full).....................: 91.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
but this one did,, and there was a huge improvement...
Thanks everyone.
I had a question about indexes and re-indexing.. I kinda stepped into this job, and have been reading up...lol
Anyways, performance is down, and I followed some of the steps outlined in this thread,, thread962-1370668
I created a maintenence plan to re-index, and the log looks like it did.
On the showcontig reports created from the thread mentioned, I have a few that whow both logical scan fragmentation and extent scan fragmentation..
On the ones where it did not show the logical scan fragmentation,, there was no change,, on the ones where there were both listed,, there was a huge improvement,,,
I was hoping that someone could tell me what the difference is between the logical scan and extent scan fragmentation,,,
also, why one would be successful in re-indexing,, and why the other would not make a difference..
and what, if anything, I can do to fix the ones that didn't change...
here is the before and after of 2 tables...
Before...
DBCC SHOWCONTIG scanning 'WORKPENDHISTORY' table...
Table: 'WORKPENDHISTORY' (1300915706); index ID: 0, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 161948
- Extents Scanned..............................: 20337
- Extent Switches..............................: 20336
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.54% [20244:20337]
- Extent Scan Fragmentation ...................: 54.46%
- Avg. Bytes Free per Page.....................: 329.0
- Avg. Page Density (full).....................: 95.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
after...
DBCC SHOWCONTIG scanning 'WORKPENDHISTORY' table...
Table: 'WORKPENDHISTORY' (1300915706); index ID: 0, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 161948
- Extents Scanned..............................: 20337
- Extent Switches..............................: 20336
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.54% [20244:20337]
- Extent Scan Fragmentation ...................: 54.46%
- Avg. Bytes Free per Page.....................: 329.0
- Avg. Page Density (full).....................: 95.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
that one there did not have the logical scan fragmentation,,, and there really was no difference...
before....
DBCC SHOWCONTIG scanning 'CUSACCT' table...
Table: 'CUSACCT' (29243159); index ID: 1, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 63152
- Extents Scanned..............................: 7940
- Extent Switches..............................: 7939
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.42% [7894:7940]
- Logical Scan Fragmentation ..................: 2.03%
- Extent Scan Fragmentation ...................: 47.96%
- Avg. Bytes Free per Page.....................: 154.6
- Avg. Page Density (full).....................: 98.09%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
after...
DBCC SHOWCONTIG scanning 'CUSACCT' table...
Table: 'CUSACCT' (29243159); index ID: 1, database ID: 12
TABLE level scan performed.
- Pages Scanned................................: 67377
- Extents Scanned..............................: 8444
- Extent Switches..............................: 8443
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.75% [8423:8444]
- Logical Scan Fragmentation ..................: 0.00%
- Extent Scan Fragmentation ...................: 3.16%
- Avg. Bytes Free per Page.....................: 652.5
- Avg. Page Density (full).....................: 91.94%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
but this one did,, and there was a huge improvement...
Thanks everyone.