Bugzilla – Attachment 5138 Details for
Bug 5866
At larger hold volume, waitingreserves.pl for all libraries times out, can cause generalized slowness
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5866 : speeding up holds awaiting pickup report
Bug-5866--speeding-up-holds-awaiting-pickup-report.patch (text/plain), 1.60 KB, created by
Chris Cormack
on 2011-08-25 02:08:49 UTC
(
hide
)
Description:
Bug 5866 : speeding up holds awaiting pickup report
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-08-25 02:08:49 UTC
Size:
1.60 KB
patch
obsolete
>From 2d14c439fbc4cde02e8c301fef1993f1c54fa7d4 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Thu, 25 Aug 2011 14:07:52 +1200 >Subject: [PATCH] Bug 5866 : speeding up holds awaiting pickup report > >--- > installer/data/mysql/kohastructure.sql | 1 + > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 2 files changed, 9 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 8b84019..13fa53d 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1555,6 +1555,7 @@ CREATE TABLE `reserves` ( > `waitingdate` date default NULL, > `expirationdate` DATE DEFAULT NULL, > `lowestPriority` tinyint(1) NOT NULL, >+ KEY priorityfoundidx (priority,found), > KEY `borrowernumber` (`borrowernumber`), > KEY `biblionumber` (`biblionumber`), > KEY `itemnumber` (`itemnumber`), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 030897c..1085db9 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4432,6 +4432,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "3.05.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("CREATE INDEX priorityfoundidx ON reserves (priority,found)"); >+ print "Create an index on reserves to speed up holds awaiting pickup report bug 5866\n"; >+ SetVersion($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >-- >1.7.4.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5866
:
5138
|
5143
|
5151