matrix performance improvements

This commit is contained in:
Yung Han Khoe 2009-02-17 01:34:34 +00:00
parent 7194107900
commit 90247ac13c
2 changed files with 12 additions and 4 deletions

View file

@ -31,6 +31,7 @@ my $quiet; # this line required
my $session = start(); # this line required
addAssetDiscoveryServiceAgain( $session );
changeMatrixAttributeIndexing( $session );
# upgrade functions go here
@ -66,7 +67,13 @@ sub addAssetDiscoveryServiceAgain {
print "Done.\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub changeMatrixAttributeIndexing {
my $session = shift;
print "\tChanging Matrix attribute indexing..." unless $quiet;
$session->db->write("alter table MatrixListing_attribute drop primary key, add primary key(attributeId,matrixListingId)");
print "Done.\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------