Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...cancan't defragment the mdf file... any suggestions?
Previous
 
Next
New Post
6/11/2008 5:06 PM
 

CSmith wrote

Physical disk defragmentation is almost never needed. However, defraging Indexes is something that should be done to all databases. Using  DBCC SHOWCONTIG will show if you need to and the amount of fragmentation within the DB. There is a good MS post here that covers fragmentaion on SQL Server 2000 but also applies to 2005.

Also note that SQL Profiler can be a power tool to indentify SQL performance issues. This along with the SQL Tuning Advisor may do the trick for you.

 

This is excellent advice.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
6/11/2008 5:51 PM
 

CSmith wrote

Physical disk defragmentation is almost never needed.

The server seems a lot slower than when I first set it up with DNN nearly two years ago.  I checked the disk defragmentation and there were red lines throughout the drive even after I defragmented.  It reported that it could not defragment the MDF file, so I assume that the red lines all over the drive represent parts of the MDF file.  I figure if the drive has to hunt all over to get parts of the database, perhaps that is at least partially a cause for the apparent performance drop. 

However, defraging Indexes is something that should be done to all databases. Using  DBCC SHOWCONTIG will show if you need to and the amount of fragmentation within the DB. There is a good MS post here that covers fragmentaion on SQL Server 2000 but also applies to 2005.

Also note that SQL Profiler can be a power tool to indentify SQL performance issues. This along with the SQL Tuning Advisor may do the trick for you.

Excellent, I will look into both DBCC SHOWCONTIG and Profiler, and the tuning advisor.  Thanks for the tips!

 
New Post
6/11/2008 6:42 PM
 

Mike,

 

Unless you database(s) has frequent and large database size changes (which a DNN database does not), the need for disk defragmentation is non existant. Table fragmentation is 99% of all performance issues in SQL DB's. Any table that is modified regularly (Insert, Update, Delete) causes the data in a row to change, not the table, so fragmemtaion occurs. Recreating and creating indexes will increase the fillfactor and thus make the servers job easier by not having to seek excessive pages of data.

There is an article here to get you started. http://www.sql-server-performance.com/articles/dba/dt_dbcc_showcontig_p1.aspx

HTH




 
New Post
3/24/2009 11:06 PM
 

We have used rebuild and reOrganize indexes on our DNN 4.9.2's database and discover that several of the indexes fail to defrag.  SQL reports the index physical stats as Operation Recommend -Rebuild

Table IndexName Index Type # Partitions Depth Operation Recommended    
dbo.TabModules
  IX_TabModules NONCLUSTERED INDEX 1 2 ReBuild    
  PK_TabModules CLUSTERED INDEX 1 2  ReBuild    
dbo.TabModuleSettings
  PK_TabModuleSettings CLUSTERED INDEX 1 2 ReBuild    
dbo.TabPermission
  IX_TabPermission        NONCLUSTERED INDEX 1 2 ReBuild    
  IX_TabPermission_Permission NONCLUSTERED INDEX 1 2 ReBuild    
  IX_TabPermission_Roles NONCLUSTERED INDEX 1 2 ReBuild    
  IX_TabPermission_Tabs NONCLUSTERED INDEX 1 2 ReBuild    
  IX_TabPermission_Users NONCLUSTERED INDEX 1 2 ReBuild    
  PK_TabPermission CLUSTERED INDEX 1 2 ReBuild    
dbo.Tabs
  IX_Tabs_1 NONCLUSTERED INDEX 1 2 ReBuild    
  IX_Tabs_2 NONCLUSTERED INDEX 1 2 ReBuild    
  PK_Tabs NONCLUSTERED INDEX 1 2 ReBuild 

In this site specific condition? Do you rebuild or recreate your indexes? 

 

 

 

 

 


Incredible PeopleWare.Canada
Report Post 


Incredible PeopleWare.Canada
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...cancan't defragment the mdf file... any suggestions?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out