]> git.koha-community.org Git - koha.git/commit
Bug 28013: Performance improvements to CanBookBeRenewed
authorNick Clemens <nick@bywatersolutions.com>
Mon, 22 Mar 2021 13:03:11 +0000 (13:03 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Apr 2021 09:01:35 +0000 (11:01 +0200)
commit81254e0db022d407e728d773b835d4f594388174
treed74dcf39313b284cb9fef3db427f276e69c2ddb4
parent20ce0fdab0896c2f95b49f655c93052f87baeff6
Bug 28013: Performance improvements to CanBookBeRenewed

In the case of 'AllowRenewalIfOtherItemsAvailable' we check all existing reserves against
all existing items. This patchset reduces the number of DB/subroutine calls

To test:
1 - Apply patch
2 - prove -v t/db_dependent/Circulation.t

Signed-off-by: Amit Gupta <amitddng135@gmail.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0b8f4ec614f8e526f814c1d79a6729f7abcac874)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm