- Slight performance increase in asset queries.

This commit is contained in:
JT Smith 2008-01-29 17:54:55 +00:00
parent 29045734e5
commit bff94329dc
2 changed files with 9 additions and 0 deletions

View file

@ -22,9 +22,17 @@ my $quiet; # this line required
my $session = start(); # this line required
removeOldPhotoGallery($session);
speedUp($session);
finish($session); # this line required
#-------------------------------------------------
sub speedUp {
my $session = shift;
print "\tSlight asset performance increase.\n" unless ($quiet);
$session->db->write("alter table assetData add index assetId_status (assetId,status)");
}
#-------------------------------------------------
sub removeOldPhotoGallery {
my $session = shift;