]> git.koha-community.org Git - koha.git/commit
Bug 14932 - serials/serials-collection.pl-page is very slow. GetFullSubscription...
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Thu, 1 Oct 2015 12:23:23 +0000 (15:23 +0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 16 Apr 2017 11:46:00 +0000 (13:46 +0200)
commit061baca0884e27533ba8c37fb139644727fda7f5
treee229457902c67f8d3f2d7e48e59ac03188cf22a9
parent042409941691b06db7e755247040781f867c0356
Bug 14932 - serials/serials-collection.pl-page is very slow. GetFullSubscription* checks permission for each serial!

Currently we have subscriptions with 300+ serials received.
It takes a lot of time to show serials-collection.pl (~20s).
This is especially troublesome when receiving serials, since after receival we get redirected to that page.

We no longer can receive daily serials in the allotted timeframe.

This quick and dirty fix prevents checking the subscription editing for each serial, but instead checks it for the first serial only.

This reduced page load time by ~18s

TEST PLAN:
1. Receive ~300 serials (or just a bunch :)  )
2. Observe the gradual slowing of the receival action.

AFTER THIS PATCH:
1. Receive ~300 serials more (or just a bunch)
2. Observe a significant performance improvement.

Signed-off-by: Paul POULAIN <paul.poulain@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 6940aa91a53371ba49528022954a9a349044ab63)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Serials.pm