]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1596595 Targeter leverages batch AOUS lookups user/berick/lp1596595-hold-targeter-reify-expand-2.11-rebase
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Feb 2017 18:59:10 +0000 (13:59 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 13 Feb 2017 15:45:45 +0000 (10:45 -0500)
commit6f0a276db2f760338374e2515dfc0b8f4d8821e1
treecec67e0b6a37b03a3aa461deb7850a26d2633d07
parentd55b5f0ea97b5a1486b7f3c70dff59b8af4cf97f
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm