Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Database Size is very large

    I am concerned that my zencart database is too large. At last check, it was over 800mb.

    What data can I dispose of? The cart is currently running 1.3.7.1 and I am in the process of upgrading it to 1.3.9f - I want to do some major house cleaning on the site and remove all old/outdated addons. I am also considering removing order history if that is going to reduce the size of the database considerably. The site has been operating since March of 2008.

    Any advice would be appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Database Size is very large

    If you've got it set to archive all outgoing emails, then you could truncate/empty the email_archive table in the database and turn off email archiving: Admin->Configuration->Email Options.

    You could optionally also prune the admin_activity_log table if you've got a backup up its content.

    Naturally, you should make a complete backup of the data, and store it for safe keeping along with your business sales and tax records, before you go deleting anything.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Database Size is very large

    Wow thats big

    can you see what tables are large via phpmyadmin?

    have you "optimised" the tables

    admin --> Tools --> Store manager --> Optimize Database (2nd to last option)

    although when i ran it, it only reduced my db size fractionally


    and emptied the admin activity log (the annoying message you get) same page as above

  4. #4
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Database Size is very large

    user_tracking was the table that was the culprit! I have purged all data.

    Size was: 899.2 MiB

    Size now is: 20.4 MiB

    Wow! I didn't realize this add-on could just run wild like that.

    I won't be including it when I upgrade.

  5. #5
    Join Date
    Nov 2009
    Location
    Chicago, IL.
    Posts
    198
    Plugin Contributions
    0

    Default Re: Database Size is very large

    Quote Originally Posted by kennyhoward View Post
    user_tracking was the table that was the culprit! I have purged all data.

    Size was: 899.2 MiB

    Size now is: 20.4 MiB

    Wow! I didn't realize this add-on could just run wild like that.

    I won't be including it when I upgrade.

    How did you accomplish this? Whats the query/ patch that you ran, to purge data in that table.

  6. #6
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Database Size is very large

    TRUNCATE TABLE user_tracking;

    I also disabled the add-on in the admin panel. I had ran the function within the admin panel to empty the past entries, but nothing happened. So I had to manually empty the table.

 

 

Similar Threads

  1. v150 Large images appear fine in one category but very tiny in another
    By ocmusic in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jun 2013, 01:31 AM
  2. how to upload a very large sql backup file?
    By ben harry in forum General Questions
    Replies: 3
    Last Post: 19 Aug 2011, 09:45 PM
  3. Zen Cart suitable for a very large mp3 store
    By catalano in forum General Questions
    Replies: 4
    Last Post: 6 Apr 2011, 04:50 PM
  4. I have a very large error log file but I dont know what these errors mean
    By sportrecovery in forum Managing Customers and Orders
    Replies: 10
    Last Post: 7 Jul 2010, 04:15 AM

Posting Permissions

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