]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 24 May 2021 14:33:25 +0000 (14:33 +0000)
commitd95b5ac27a3c8fc2e082844186f3676ce68bf716
tree9ebd9cfbae97919e343c8e9fb3a616ba1f39b476
parent16b1e24580e1c996187c23b91978a54341db1f02
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>
(cherry picked from commit 81254e0db022d407e728d773b835d4f594388174)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/Circulation.pm