changes to database optimizers and cleaner scripts for new vicidial_campaign_server_stats table
git-svn-id: svn://192.168.202.10@321 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -180,6 +180,17 @@ $dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VA
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
$stmtA = "optimize table vicidial_campaign_server_stats;";
|
||||
if($DB){print STDERR "\n|$stmtA|\n";}
|
||||
if (!$T) {
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if (!$Q) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
$stmtA = "optimize table vicidial_dnc;";
|
||||
if($DB){print STDERR "\n|$stmtA|\n";}
|
||||
if (!$T) {
|
||||
|
||||
Reference in New Issue
Block a user