MySQL table optimisation

This post was written 7 years ago.
Tue, 22 Mar 2005
I help look after the forum at middle-age-shred.com (website for old/ old skool skateboarders), which has proved to be a victim of it's own success with loads of traffic., and hence swelling of the MySql database. I'm not sure where the database is hosted but they don't allow much disk space for the package so it is important to keep an eye on it. Despite "pruning" of the forum (e.g. removing posts older than x days), the table sizes didn't seem to be reducing much, so I wondered if they behave a bit like disk storage where deleting information doesn't always free up space. This turned out to be the case so I did a bit of googling and found this:-

Running the optimise command reduced the tables by about a third :-)
This post was written 7 years ago, which in internet time is really, really old. This means that what is written above, and the links contained within, may now be obsolete, inaccurate or wildly out of context, so please bear that in mind :)
Comments
blog comments powered by Disqus