I know this addon will prob add an little lag issue when it runs but should fix any of the tables that are bad or erroneous.
replace in cleanup.php of 2.08 only
From what i been reading
OPTMIZE TABLE does not work that way with InnoDB for two major reasons:
REASON #1 : InnoDB Storage Layout
REASON #2 : Index Statistics are Always Recomputed
incase people wondering where I am getting this info from: http://stackoverflow.com/questions/7069010/how-to-fix-the-overhead-and-effective-problem-on-innodb-table
replace in cleanup.php of 2.08 only
$res = SQL_Query_exec("SHOW TABLES");
while ( $table = mysql_fetch_row($res) )
{
SQL_Query_exec("OPTIMIZE TABLE `$table[0]`;");
}
with
$res = SQL_Query_exec("SHOW TABLES");
while ( $table = mysql_fetch_row($res) )
{
// Get rid of overhead.
SQL_Query_exec("REPAIR TABLE `$table[0]`;");
// Analyze table for faster indexing.
SQL_Query_exec("ANALYZE TABLE `$table[0]`;");
// Optimize table to minimize thrashing.
SQL_Query_exec("OPTIMIZE TABLE `$table[0]`;");
}
From what i been reading
OPTMIZE TABLE does not work that way with InnoDB for two major reasons:
REASON #1 : InnoDB Storage Layout
REASON #2 : Index Statistics are Always Recomputed
incase people wondering where I am getting this info from: http://stackoverflow.com/questions/7069010/how-to-fix-the-overhead-and-effective-problem-on-innodb-table