LP#1596595 Find parallel holds in main query
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Dec 2016 20:46:41 +0000 (15:46 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 14 Feb 2017 16:22:03 +0000 (11:22 -0500)
commit2ef3752af5b9bbe4ee43f04c76cf9549225cabe9
tree8d9dc2a85f99e848ba9f29652be3cea101afdffe
parent6d6536f7a293aa2b13d8dfec2a08ca8073bf48a4
LP#1596595 Find parallel holds in main query

Identify holds to process by which metarecord the hold is (ultimately)
linked to within the main holds query instead of via a secondary filter.
This avoids the overhead of starting a new batch of hold targeters,
where each process has to fetch all possible holds, then filter down to
those targetable within the current parallel slot.  In thise case, each
process only retrieves the holds it plans to process.

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