tags:

views:

87

answers:

2

Hi,

I have a question regarding clearing of the log data in Magento.

I have more than 2.3GB of data in Magento 1.4.1, and now I want to optimize the database, because it's too slow due to the size of the data. I checked the log info (URL,Visitors) and it shows more than 1.9 GB. If I directly clear those records, will it affect any functionality in the site? How can I clear the log details? By clearing those data will I have or lose any data on my site?

+4  A: 

No need to do this yourself, the Magneto system has a built-in for cleaning up log information. If you go to

System > Configuration > Advanced > System > Log Cleaning

You can configure your store to automatically clean up these logs.

Alan Storm
Hi thanks man...
Ela
N.B. this assumes that you have setup your cron jobs, right Alan? Instructions are here: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job
Jonathan Day
Probably Jonathan, I don't do much system maintenance with Magento, but that's typically how something like this is implemented.
Alan Storm
This definitely assumes that you have setup cron jobs.
vrnet
+1  A: 

Hi there,

there are some other tables you can clear out: documented here : http://dx3webs.com/front/2010/08/house-keeping-for-your-magento-database/

hope this helps Andy

Andy Bird