Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Auto Optimize...


monte22

Recommended Posts

Posted

Lately I have been having some problems with my sessions table. It seems after awhile it gets "full" and then causes errors on the site. When I go into PHP Admin and optimize it, it will work again.

 

So my question is, is there a way to have MySQL auto optimize the table so i dont have to keep doing it? Or is there something else wrong here that i am not seeing.

 

Any help would be appreciated.

 

James

Posted

if you have access to cronjobs (scheduled tasks on Windows I think?) you could have a simple

 

OPTIMIZE sessions;
REPAIR sessions;

 

executed every nn hours/days/whatever

 

Regards

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I would also be really interested in this.

 

Maybe it can be added to a file thats called or an if statement can be added somewhere that checks to see if the DB is not optimized. I would like to hear more on this subject.

Posted

James - how long does optimising the table take ?

Your online success is Paramount.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...