- Added a database optimization that will improve asset lookup performance by

as much as 600% on some sites.
This commit is contained in:
JT Smith 2007-01-19 15:01:07 +00:00
parent 2180b9bf91
commit e1cf7ae8d5
2 changed files with 9 additions and 7 deletions

View file

@ -3,6 +3,8 @@
- fix: profile fields do not ever set the default value
- fix: CS email message shows up as an attachment
- fix: Calendar: start/end date time off in edit interface (perlDreamer Consulting, LLC)
- Added a database optimization that will improve asset lookup performance by
as much as 600% on some sites.
7.3.5

View file

@ -20,17 +20,17 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
optimizeDb($session);
finish($session); # this line required
##-------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
#-------------------------------------------------
sub optimizeDb {
my $session = shift;
print "\tOptimizing database.\n" unless ($quiet);
$session->db->write("alter table assetData add index assetId_status_tagId_revisionDate (assetId,status,tagId,revisionDate)");
}