Hello
I am using SQL 2000
I am experimenting with indexes at the moment, trying to improve update/access time.
I have created a simple table (bunzlsubgroups) as:
This contains about 1500 records
When I run dbcc showcontig on it, it returns:
looking around, the general consensus seems to be, aim for a Scan and Page Density near 100%
Why is the scan density so low if I have only just created this table?
If I run
to defrag the index, it does nothing.
I'm really trying to get a good understanding of how this works and this doesn't quite make sense
Thanks
Damian.
I am using SQL 2000
I am experimenting with indexes at the moment, trying to improve update/access time.
I have created a simple table (bunzlsubgroups) as:
Code:
CREATE TABLE [bunzlsubgroups] (
[bunzlgroupid] [udt_bgroupid] NOT NULL ,
[bunzlgroupdesc] [udt_bgroupdesc] NULL ,
[majorgroupid] [udt_mgroupid] NULL ,
[majorclassid] [udt_mclassid] NULL ,
CONSTRAINT [PK_bunzlsubgroups] PRIMARY KEY CLUSTERED
(
[bunzlgroupid]
) ON [PRIMARY]
) ON [PRIMARY]
This contains about 1500 records
When I run dbcc showcontig on it, it returns:
Code:
DBCC SHOWCONTIG scanning 'bunzlsubgroups' table...
Table: 'bunzlsubgroups' (1577458206); index ID: 1, database ID: 7
TABLE level scan performed.
- Pages Scanned................................: 6
- Extents Scanned..............................: 4
- Extent Switches..............................: 3
- Avg. Pages per Extent........................: 1.5
- Scan Density [Best Count:Actual Count].......: 25.00% [1:4]
- Logical Scan Fragmentation ..................: 0.00%
- Extent Scan Fragmentation ...................: 75.00%
- Avg. Bytes Free per Page.....................: 750.8
- Avg. Page Density (full).....................: 90.72%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
looking around, the general consensus seems to be, aim for a Scan and Page Density near 100%
Why is the scan density so low if I have only just created this table?
If I run
Code:
dbcc indexdefrag(mdw, bunzlsubgroups, pk_bunzlsubgroups)
I'm really trying to get a good understanding of how this works and this doesn't quite make sense
Thanks
Damian.