Results 1 to 4 of 4

Thread: Database size

  1. #1
    fpci is offline Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Default Database size

    I recently did a backup and noticed the zip file was about 1 gig big.

    Is there a way to run something to compact the db or is this it ?

    I'm currently running Version 5.2.0j (Build 5804) of the community edition.

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Database size

    Sugar data don't uses to be very big, once attachments are all stored on server file system instead on database.

    Whether your database backup are really big, I can think in two options:
    1. You really have a lot of data and it can't be reduced.
    2. You could take a look on tracking table, it uses to be sugar biggest table cause it logs all user's actions, but its data are unnneed in a genneral way. So you would make a backup skipping this table data to check the reducing of your backup size.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    977

    Default Re: Database size

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    Sugar data don't uses to be very big, once attachments are all stored on server file system instead on database.
    Side note: this is one of the reasons why you should always backup the sugar file system too. Another really important reason is that every change in admin section of Sugar changes the Sugar source code / configuration files and in some cases the database structure too and both parts must fit together.
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,811

    Default Re: Database size

    Quote Originally Posted by fpci View Post
    I recently did a backup and noticed the zip file was about 1 gig big.

    Is there a way to run something to compact the db or is this it ?

    I'm currently running Version 5.2.0j (Build 5804) of the community edition.
    The pruning job in the Sugar scheduler should be compacting it for you, assuming it is actually running. You can check it by looking at Admin > Schedulers.

    Also, if you are on MS-SQL, you might want to try truncating the database's transaction log.

    Lastly, is the 1 GB you mention a reference to the database or the program files? If the latter, it could be the result of a lot of attachments, either for email, notes or documents. It could also be the result of multiple uses of the Diagnostics Tools in the Admin control panel. That process makes a copy of the files one chooses to download and unless they are deleted, they remain within the directory structure of Sugar. I've seen that cause large bloats as well.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inbound emails and database size
    By blasphemonium in forum Help
    Replies: 1
    Last Post: 2010-05-16, 08:53 AM
  2. Database Size Estimate
    By oogway in forum General Discussion
    Replies: 3
    Last Post: 2010-04-19, 09:36 PM
  3. Database Size
    By DanBrown in forum Help
    Replies: 1
    Last Post: 2008-09-19, 01:43 PM
  4. Database size
    By soper in forum General Discussion
    Replies: 2
    Last Post: 2006-02-27, 04:50 PM
  5. Size of Database fields
    By wokkie in forum Feature Requests
    Replies: 1
    Last Post: 2004-09-15, 02:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •