Unless you have 1,000's of stored procedures on the
system. Syscomments is not a very big table, so I would
not worry too much about fragmentation.
Created a clustered index and nonclustered indexes on a
table with 5,953,675 rows using a fillfactor of "95" for
clustered index and "98" for nonclustered indexes.
After 82,119 inserts (.01 of table), the nonclustered
indexes had a value of "83" for scan density, "4" for
logical frag, and "96" for avg. page density. The
clustered index had a value of "96" for scan density, "1"
for logical frag, and "88" for avg. page density.
Methinks I should have used a fillfactor for the
nonclustered indexes a value of "96", and a fillfactor
value of "96" for the clustered index. The table and
indexes span multiple files. Confused on trade-off on
scan density versus avg. page density with nightly inserts.
Am in an OLAP (Data Warehouse) environment. Have other
tables with similiar scenarios (roughly one percent of
table being done nightly with inserts).
Am open to anything. Thank you
5. Scan Density
9. Scan Density