hgs yükleme
My Cart (0)  |  My Orders  |  My Downloads  |  My Auction  |  My Account  |  Help


Login |Register        Search

How to improve dnn database performance

                Print      Add To Favorite     Add To Watch List     Contact Author

Creator: host   5/24/2012 11:04:50 AM    Author: Sebastian Leupold   Source: http://www.dotnetnuke.com/Resources/Blogs/EntryId/2903/DotNetNuke-Database-Performance-Tips.aspx   Views: 2156    0    0  
Tags:
Performance Database Dotnetnuke


Posted by: Sebastian Leupold
12/3/2010  

Besides web server configuration, DotNetNuke performance and cache settings or the number of modules installed, the database is a key for performance of your web site. There are a number of items, you may take care of:
  • Check the size of your transaction log, in DNN 5 you may read it from Database tab inside Host :: Dashboard. Usually the size should not exceed more than a few MB and get truncated on nightly backups. To truncate it, run the following statement from Host :: SQL
    backup log DatabaseName with no_log 
    dbcc shrinkfile(Database_Logname)
    dbcc shrinkdatabase(DatabaseName)
    In some cases, you need to switch to simple recovery model first:
    ALTER DATABASE  DatabaseName SET RECOVERY SIMPLE
  • In a number of DNN versions, the Eventlog table affects performance due to an inefficient index and shouldn't grow beyond a few hundred entries. To check number of entries, run the following statement from Host ::SQL:
    SELECT COUNT(*) N from {databaseOwner}{objectQualifier}EventLog
    If clearing the eventlog fails inside Admin :: EventViewer, you may do it from Host :: SQL by running:
    TRUNCATE TABLE {databaseOwner}{objectQualifier}EventLog
  • Same applies to Scheduler log:
  • TRUNCATE TABLE {databaseOwner}{objectQualifier}ScheduleHistory
  • sometimes a search table may exaggerate, you may safely clear the whole tables by running
    TRUNCATE TABLE {databaseOwner}{objectQualifier}SearchItemWordPosition
    DELETE {databaseOwner}{objectQualifier}SearchItemWord
    DELETE {databaseOwner}{objectQualifier}SearchWord
    DELETE {databaseOwner}{objectQualifier}SearchItem
    and re-index from Host :: Search Administration
  • Update statistics used for query optimisation:
    Use DatabaseName
    exec sp_updatestats;
  • consider setting up a proper maintenance plan with integrity checks, rebuilding indexes etc.
A performing database is fundamental for your web site speed :)

Do you have other tips to share?

Rating People: 8   Average Rating:     

     DnnModule.com is built to provide DNN quality modules and DNN skins, some of them are free, some not. We wish these stuffs (free or not ) can be useful to you.

     Besides that, we also provide a full range of professional services, ranging from web site build, seo, system management, administration, support, senior consultancy and security services. We act as if your development project or network was ours, with care and respect. We are not satisfied until it works the way you want it to, and we don't silently ignore found issues as somebody else's problem.