--- optimize_mythdb.pl-orig 2007-09-05 16:58:39.000000000 -0400 +++ optimize_mythdb.pl 2007-09-05 16:59:20.000000000 -0400 @@ -68,6 +68,9 @@ if ($dbh->do("OPTIMIZE TABLE $table")) { print "Repaired/Optimized: $table\n"; } + if ($dbh->do("ANALYZE TABLE $table")) { + print "Analyzed: $table\n"; + } } # Close the database connection