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 ...Reducing Database SizeReducing Database Size
Previous
 
Next
New Post
7/9/2007 11:02 AM
 

Ok, need a bit of insite here into database maintenance.  I am by no means an SQL expert, but here's my situation.

I have a standard DNN 4.5.1 install going, and it seems my database is out of control.

I only have a few core modules installed, and I actually only use 3 modules on the site:

1. TEXT/HTML

2. Ventrian's News Articles

3. Daily Comic

Any ideas why my database would be over 360 MB?  I'm not even sure where to begin troubleshooting this.  Should I upgrade the site to 4.5.3, turn something off?

Thanks,

Vollerworld


Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
7/9/2007 11:35 AM
 

SiteLog and EventLog are your most likely culprits.

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/9/2007 11:48 AM
 

It is definitely the log file.  I'm not sure how to clear that.  I don't think I need the data in the log file, but maybe I'm just ignorant about that.  My whole site is just a blog, so I don't know what log file info. i would really need to keep.

Is there a standard procedure for reducing the log file size?  Sorry to ask such basic questions!


Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
7/9/2007 12:02 PM
 

In the Host > SQL window, or with SQL Enterprise Manager run this:

Truncate Table EventLog

And if you don't care about keeping any site stats run this:

Truncate Table SiteLog

Then you can shrink the database to reduce the size if you want.

To shrink the DB with Enterpriser Manager, you right click your mouse on the database you want to shrink. Select 'ALL_TASKS' then 'Shrink Database'. You will see a summary of the database size, and the amount of space that can be recovered.

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/12/2007 9:21 PM
 

There is a stored procedure you can call from the HOST->SQL window.

Exec sp_spaceused sitelog  You can use this also for eventlog OR schedulehistory

You can also use Select count(*) sitelog            OR eventlog OR schedulehistory

If you wan to dump the whole log use:

Truncate Table Sitelog           OR eventlog OR schedulehistory

If you want to trim from the back (oldest entries)

DELETE FROM SiteLog WHERE DateTime < GetDate() -60       You can reduce the -NN by a few days each time you execute until you get the final log size you want.

You can also limit the number of days logs are retained in the Admin->Site Settings->Advanced Setting->Host Settings->Site Log History.  I have mine set to just 2 days.  The log size become more critical if you are using disk based caching.  If you are using disk based caching your performance will wane until it become slower than molasses in January.  All of the performance tweaks mentioned were more of a pain in the empanage than a help.  They usually induced other strange phenomena for me.  As in moderate or Heavy caching, authenticated cacheability (default is "server and no cache.")  Some recommend public.  Compression does seem to help.  The web garden is definately a NO NO if you want to maintain your sanity when adding modules and moving pages.

BUT the real HOT SETUP for me was to add memory to the server (I maxed it out at 4 GB.  Then I set the Page State Persistance to "Memory" and Moduel Caching Method to "Memory."  I went from so so performace to INSTANTANEOUS response on the LAN and nearly instantaneous response on the WAN.

You can limit the number of logs for the schedulehistory log by editing Host->Schedule.  Then clicking on the pencil next to each of the entries and setting the Retain Schedule History entry to a lower value.

You can lower the event log entries by going to Event Viewer and pulling down the menu and selecting "Edit Log Settings."  Click on the "Edit" link next to each entry and lower the amount for the entry "Keep Most Recent."  the * line is one that has a hight setting.  Be sure to check them all.

Hope this is of help to you.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Reducing Database SizeReducing Database Size


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