LP#1596595 Find parallel holds in main query
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Dec 2016 20:46:41 +0000 (15:46 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 9 Jan 2017 15:08:15 +0000 (10:08 -0500)
commit4196c4dd9eb64dd45a2857c760b5e85e8198c882
tree40923694875c727c7dfa5a58e2d696e51b7953a7
parent583e3ba129da9d94e40b316b369e85572cb757eb
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm