- Added a database optimization that will improve asset lookup performance by
as much as 600% on some sites.
This commit is contained in:
parent
2180b9bf91
commit
e1cf7ae8d5
2 changed files with 9 additions and 7 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
- fix: profile fields do not ever set the default value
|
- fix: profile fields do not ever set the default value
|
||||||
- fix: CS email message shows up as an attachment
|
- fix: CS email message shows up as an attachment
|
||||||
- fix: Calendar: start/end date time off in edit interface (perlDreamer Consulting, LLC)
|
- 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
|
7.3.5
|
||||||
|
|
|
||||||
|
|
@ -20,17 +20,17 @@ my $quiet; # this line required
|
||||||
|
|
||||||
my $session = start(); # this line required
|
my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
optimizeDb($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
||||||
##-------------------------------------------------
|
#-------------------------------------------------
|
||||||
#sub exampleFunction {
|
sub optimizeDb {
|
||||||
# my $session = shift;
|
my $session = shift;
|
||||||
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
|
print "\tOptimizing database.\n" unless ($quiet);
|
||||||
# # and here's our code
|
$session->db->write("alter table assetData add index assetId_status_tagId_revisionDate (assetId,status,tagId,revisionDate)");
|
||||||
#}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue