Unslow bounce report generation and add some extra info as a bonus!
This commit is contained in:
parent
0843bec5e0
commit
d325e7a301
4 changed files with 68 additions and 8 deletions
|
|
@ -35,6 +35,7 @@ addSpecialStateTable( $session );
|
|||
addListNameColumn( $session );
|
||||
addRegistrationSteps( $session );
|
||||
addConfirmationTemplateColumn( $session );
|
||||
addSentToIndex( $session );
|
||||
|
||||
finish($session);
|
||||
|
||||
|
|
@ -63,6 +64,17 @@ sub addConfirmationTemplateColumn {
|
|||
'WUk-wEhGiF8dcEogrJfrfg',
|
||||
]
|
||||
);
|
||||
|
||||
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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue