[Koha-bugs] [Bug 29474] Automatic renewals cronjob is slow on systems with large numbers of reserves

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Nov 20 13:14:19 CET 2021


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

--- Comment #30 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
Created attachment 127906
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127906&action=edit
Bug 29474: Pass rules/branchcode to subroutines, further simplify logic

If we are going to decouple 'too_soon' from auto_renewals we should only call
GetSoonestDate once

Additionally, we can fetch all needed rules at once and pass to subroutines as
needed

Rather than check in the sub, let's not call _CanBookBeAutoRenewed if we aren't
set for auto_renew

Signed-off-by: Joonas Kylmälä <joonas.kylmala at iki.fi>

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


More information about the Koha-bugs mailing list