Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Cleaning out old data on a v1.3.7.1?

    Hi Gang!

    So I am looking through a SQL dump in my tables (worth 5 years!) and it looks like there's data there I could do without. Or so I think.
    For instance - do I really need the data in:

    - banners_history
    - customers_basket
    - customers_basket_attributes
    - customers_info (logon time, etc.)

    I'm just trying to see if I could optimize thing without breaking things.

    Any suggestion more than welcomed!!

    Gabstero

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cleaning out old data on a v1.3.7.1?

    Ya, you could truncate the banners_history and customers_basket/customers_basket_attributes tables if you wanted to lose the data in them.
    Chances are the amount of data in them is minimal.

    DO NOT TOUCH THE customers_info table. That table must be kept in sync with the customers and address_book tables. If you touch customers_info you'll break your customer login capability.

    If you're really looking to purge data, take a backup of the admin_activity_log and email_history tables, and truncate them.
    .

    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
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Cleaning out old data on a v1.3.7.1?

    thanks a lot for the advice, Dr. Byte!

    Just to make sure if I get this right. Truncate means deleting some of the data in that banners_history for instance:

    Code:
    (61, 0, 105, 0, '2008-02-19 08:49:57'),
    (62, 0, 12, 0, '2008-02-20 09:28:01'),
    (63, 0, 63, 0, '2008-02-21 00:23:07'),
    etc.'
    etc.'
    right?

    thanks!
    gabstero

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cleaning out old data on a v1.3.7.1?

    "TRUNCATE" is a MySQL statement which means "delete all records in the table and completely reset the table as if it was brand new, including resetting any internal counters and auto-incrementers, and clean up any wasted space caused by the deletion of those records".
    In phpMyAdmin the menu option is probably called "Empty".

    USE AT YOUR OWN RISK.

    ALWAYS KEEP GOOD RELIABLE DATABASE BACKUPS, AND TEST THEIR RELIABILITY REGULARLY.

    AND ALWAYS TAKE A RELIABLE BACKUP BEFORE DELETING ANY DATA!
    .

    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.

  5. #5
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Cleaning out old data on a v1.3.7.1?

    Thanks a bunch!

    That's all I needed to know.

    much obliged,

 

 

Similar Threads

  1. v138a website is using old data
    By limii in forum Customization from the Admin
    Replies: 3
    Last Post: 25 Dec 2012, 10:15 AM
  2. Ye Old Upgrade - Archiving and Removing Old Data, etc.
    By chadderuski in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 4 Sep 2012, 08:25 AM
  3. cleaning old files on 1.3.9h -> strange error
    By sanji in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 30 Dec 2010, 02:26 PM
  4. Cleaning out uploaded files
    By cpowell1 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Apr 2009, 08:19 PM
  5. Data cleaning
    By glennnz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Aug 2008, 03:04 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