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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to reduce DNN DB size?How to reduce DNN DB size?
Previous
 
Next
New Post
2/18/2009 2:24 AM
 

Hi,

I have implemented website using DNN, its working good.

i want to reduce my DNN size, because its too high size normally taken.

anyone can help, how to reduce dnn size, in common way.

 

Thanks,

Vels


Velmurugan S
 
New Post
2/18/2009 2:46 AM
 

I would start by looking at the EventLog and SiteLog tables to make sure they don't have a bunch of records in them.

AFter that I would look at doing a shrink of the database to see the actual size.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/18/2009 8:07 AM
 

If you are host - you can easily remove the excess baggage from your event and site logs - by going to Host / SQL

In the text box type in the following for removing all the EventLog entries - making sure you check the box for run as SQL (red writing will show when it's done)

truncate table EventLog

In the text box type in the following for removing all the SiteLog entries - making sure you check the box for run as SQL (same as the first thing I wrote)

truncate table SiteLog

 

That will remove the entries from those two table, but I would check the event viewer first for errors - sometimes a small bug or error will run up thousands and thousand of transactions and create an incredible blowout.  If you can't see it because it says it's timed out - that's a good hint that it needs to have that quick sql script run to bring the screen back again.

Also  - check that db is set to grow per MB - NOT % - 10% growth is like that theory of if you save 1 cent one day, then two cents the next day, then 4 cents the day after - you'll be a millionaire in a short time.  It creates this multiplication that blows out the size of databases.  That has to be done through the SQL manager, not the website.

That should help you trim back an overweight DB - and if you set the db to be Simple, not Full, you'll find that it might keep it's tidy weight.

I have over 160 databases on my servers that I manage - and sometimes when you neglect them they punish you with misbehaving servers.. sort of like naughty kids if you ask me..

Nina


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
2/18/2009 7:34 PM
 

I believe Nina meant to say "run as script" as opposed to "run as SQL" if I'm remembering the host SQL window.

You can truncate your EventLog and SiteLog tables which will empty them out completely. But going forward you'd want to set this to happen via the scheduler, so the size of these tables is kept under control by removing entries over x number of days - whatever fits your needs.

As far as setting the database to grow by a set amount rather than by percentage - that may be good advice, possibly not in every case, but in many cases. However, the size of the database isn't affected by this as much as is performance. If the database server has to increase the size of the database often, then it is using resources (CPU cycles and disk I/O) to do that rather than serving data. If it grows by larger chunks, then it has to grow less often. That isn't necessarily a choice between percent value or MB value. If you have a 2Gb database and it grows by 10% - that's a couple hundred Mb. It probably won't have to grow again for a while. Not a bad choice. If you have a 20 Mb database, and it grows by 10%, the server will do a lot of work just growing the database until it reaches a mature size of whatever - 500 Mb, say. how many times did it have to increase the size of the db to get from 20 Mb to 500, at 10% ... way too many! If you set it to increase by 100Mb whenever it needs to grow ... then it only had to grow 5 times to get there.

But again, that issue does not cause a database to bloat; it tends rather to degrade performance.

Performance-wise, it is actually better to let the database stay larger (within reason) rather than trying to keep it as small as possible. That way the server doesn't have to spend resources shrinking and growing the database. Diskspace is cheap; performance always matters.

If your database continues to grow large, then perhaps it is not being backed up properly, in which case the transaction log cannot be truncated (not the same as shrinking a database). That is not a DNN issue, but rather an SQL issue.

If you know that your db is being backed up, that the transaction log is therefore getting truncated, that you have scheduled maintenance on your event log and site log, then you should not have other concerns about the size of your database. Let it find its natural size and let it keep its disk space. Wrestling disk space away from it in an attempt to always keep it pruned and small is just a performance drain.

Switching to simple mode likewise depends on regular database backups to keep the transaction log small (else it will eventually fill the disk!). However, you lose the ability to back your site up to a designated point in time. Not a choice I make for sites that are at all critical.


pmgerholdt
 
New Post
2/18/2009 11:53 PM
 

Oh man you are right - once again - tired when answering a post.. not good is it.  Thanks for clarifying it.

Thanks for these tips - We don't use % but use MB because your'e right - we had issues for a while on some of the smaller newer sites that grew and caused grief due to that very problem.

It's taken a while for us to get the mix right - the sites that have alot more traffic, eg.. over 250,000 page views per month are handled differently to the builds where we have lots of child portals but not much traffic - eg.. more brochureware sites.

It's a learning process.

Thanks for this informative post Michael!!

Nina


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to reduce DNN DB size?How to reduce DNN DB 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