Unslow bounce report generation and add some extra info as a bonus!

This commit is contained in:
Martin Kamerbeek 2010-11-12 18:02:50 +01:00
parent 63b0a9edf1
commit dbf935e98b
4 changed files with 72 additions and 8 deletions

View file

@ -34,9 +34,25 @@ renamespaceTemplates( $session );
addSpecialStateTable( $session );
addListNameColumn( $session );
addRegistrationSteps( $session );
addSentToIndex( $session );
finish($session);
#----------------------------------------------------------------------------
sub addSentToIndex {
my $session = shift;
my $db = $session->db;
print "\tAdding index to column Mailing_email.sentTo...";
my @indexes = $db->buildArray('show indexes from Mailing_email where Column_name=?',['sentTo']);
if ( @indexes == 0 ) {
$db->write('alter table Mailing_email add index(sentTo)');
}
print "Done.\n";
}
#----------------------------------------------------------------------------
sub addListNameColumn {