]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1596595 Targeter leverages batch AOUS lookups
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Feb 2017 18:59:10 +0000 (13:59 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 17 Feb 2017 05:58:53 +0000 (00:58 -0500)
commit895f8bd153b9d98ad0920f85f5b1d2c95d0833b1
tree68538e1b4e29baf2d8f3e326c549389465e2acee
parent85e73bc2c8caa94b14c78c44866411ca192b2c82
LP#1596595 Targeter leverages batch AOUS lookups

Use the batch-by-org AOUS lookup function to fetch settings with one
cstore call across a wide set of org units.  This reduces the number of
cstore calls required, significantly in some cases, for single-use hold
targeter instances (like placement time targeting, checkin retargeting).

Specifically, in cases where a hold has targetable copies at multiple
circ libs, only one cstore call is needed for each of the
circ.holds.org_unit_target_weight and
circ.holds.target_when_closed settings, as opposed to one cstore call
for each per circ lib.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm