I'm trying to reindex/reogranize my indexes to improve performance on the database and have a couple of questions regarding the options for setting indexes.
Example 1:
I have a very small table that very seldom gets anything inserted in it (like maybe once a year if we reorganize the department it refers to), and there is a primary key index on it and a clustered index on it both on the primary key field. It's a tiny table of 8 columns and 90 rows. The absolute BEST scan density I've been able to achieve is 50% after reindexing with a fill factor of 95. I could probably do it with a fill factor of 100 and be OK, but will that improve the scan density in any significant way? Is the fact that there are two indexes on it referring to the same column interfering with the scan in any way? Is the clustered index superfluous?
Example 2:
This table is HUGE and has no primary key field. It is constantly having records inserted and updated and is VERY heavily queried, but very few records ever get deleted (only when I archive). It currently has 6,127,607 rows and 20 columns. It has 4 indexes a primary key index (although how it can have one is beyond me, because there IS no uniquely identified column in it -- this index is, however on two columns, that when taken together would be unique, so I'm assuming that's how it has the designation of PK), a clustered index and two other non-clusterd indexes. Before I ran dbcc reindex on it last night, it had a scan density of 47% afterwards, it had a scan density of 53%. Obviously, since this table has a lot of activity, I want the fill factor set well below 100%, but how far below? When I reindexed, I set it to 70 -- should it be even lower?
Thanks in advance!
Margaret
Example 1:
I have a very small table that very seldom gets anything inserted in it (like maybe once a year if we reorganize the department it refers to), and there is a primary key index on it and a clustered index on it both on the primary key field. It's a tiny table of 8 columns and 90 rows. The absolute BEST scan density I've been able to achieve is 50% after reindexing with a fill factor of 95. I could probably do it with a fill factor of 100 and be OK, but will that improve the scan density in any significant way? Is the fact that there are two indexes on it referring to the same column interfering with the scan in any way? Is the clustered index superfluous?
Example 2:
This table is HUGE and has no primary key field. It is constantly having records inserted and updated and is VERY heavily queried, but very few records ever get deleted (only when I archive). It currently has 6,127,607 rows and 20 columns. It has 4 indexes a primary key index (although how it can have one is beyond me, because there IS no uniquely identified column in it -- this index is, however on two columns, that when taken together would be unique, so I'm assuming that's how it has the designation of PK), a clustered index and two other non-clusterd indexes. Before I ran dbcc reindex on it last night, it had a scan density of 47% afterwards, it had a scan density of 53%. Obviously, since this table has a lot of activity, I want the fill factor set well below 100%, but how far below? When I reindexed, I set it to 70 -- should it be even lower?
Thanks in advance!
Margaret