[Koha-bugs] [Bug 29483] AllowRenewalIfOtherItemsAvailable has poor performance for records with many items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 24 11:06:22 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29483

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #132096|0                           |1
        is obsolete|                            |

--- Comment #24 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 132113
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132113&action=edit
Bug 29483: Further improve performance of script

This patch adds a few tests to cover more cases, and to highlight current
functionality.

The script only allows renewal if all outstanding holds can be filled by
available items.
This means we can return as soon as we have determined that not all holds can
be filled.

I add FIXME and some explanatory comments - I will file a follow-up bug for
those, but
I feel we can accept these improvements to the performance and deal with the
issues
of how it 'should' work versus how it does work on another report.

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

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list