https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43124 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #8 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Reworked on top of the current bug 42386 patches (Tomas's restructured 9-patch series), which replaced the code these patches optimise. Notable changes in the port: (1) already_possession in 42386 now applies to any item of a biblio the patron has checked out, so the prefetch is now a hash of checked-out biblionumbers (checked_out_biblionumbers) rather than itemnumbers, and a new test covers that every item of a record is blocked; (2) age_restriction_ok is only passed for items of the biblio being checked, as host-record (analytics) items belong to a different biblio and keep the per-item check; (3) cache_counts/skip_patron_count_checks no longer exist in 42386 so those parts are gone. The hold-count queries 42386 now runs per item are not optimised here. To test: apply the current 42386 patches first, then these two (note that patch 5 of 42386 currently needs a one-line fix to the 'use Test::More tests' count in t/db_dependent/Reserves.t against main). Tests from the original plan all pass, including the query-count-at-scale test. Restoring status to Needs Signoff. -- You are receiving this mail because: You are watching all bug changes.