6 replies
by mirrormirror
by crossleyc
Thanks for responding. I've already run profiler and I could not find any dbcc statements. The database was on the sans drive with the log file. I recently moved it off back to a local drive when I thought that being on fiber might be a performance issue. What I dont understand is why this is an issue when we're running the same queries now that we were before destroying
the transaction log? Thanks again for the leads and I'll get back with the results.
by mirrormirror
I thought of a few other things...Check to see if the recovery model is set to the correct one. And, check to see if the database is set to autoshrink. Autoshrinking can be very inefficient and cause a lot of I/O. The same can be said for lots of automatic growth.
Check for tips at http://www.sql-server-performance.com/default.asp
by crossleyc
by mirrormirror
Scan Density - [Best Count: Actual Count] - Best count is the ideal number of extent changes if everything is contiguously linked. Actual count is the actual number of extent changes. The number in scan density is 100 if everything is contiguous; if it is less than 100, some fragmentation exists.
The Avg. Bytes free per page and Avg. Page density (full) statistic in the result set give an indication of the fullness of index pages. The Avg. Bytes free per page figure should be low and the Avg. Page density (full) figure should be high. Dropping and recreating a clustered index, with the FILLFACTOR option specified, can improve these statistics. Also, the DBCC INDEXDEFRAG command will compact an index, taking into account its FILLFACTOR, which will improve these statistics.
Logical Scan Fragmentation and, to a lesser extent, Extent Scan Fragmentation values give the best indication of a table's fragmentation level. Both these values should be as close to zero as possible (although a value from 0% through 10% may be acceptable). The DBCC INDEXDEFRAG or DBCC DBREINDEX commands are methods of reducing fragmentation and can be used to reduce these values.
There is a script in BOL that will defrag indexes and can be run as a scheduled job. It is part of the DBCC SHOWCONTIG documentation.
I have special jobs that defrag large and heavily used tables nightly and another job that defrags the entire database every weekend. It all depends on how the tables are used and how frequently a table becomes fragmented. I also update statistics in a job several times a day.
by crossleyc
This discussion is closed to new replies.
Trending Software posts
Sort by Trending