[Koha-bugs] [Bug 28833] Speed up holds queue builder via parallel processing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 10 13:53:24 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28833

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #123671|0                           |1
        is obsolete|                            |

--- Comment #6 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 123679
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123679&action=edit
Bug 28833: Speed up holds queue builder via parallel processing

The holds queue builder can take a very long time to run on systems with many
holds. For example, a partner with 124,784 unfilled ( not found ) holds, is
taking about 64 minutes to run. If we run that same number of holds in 5
parallel chunks ( splitting the number of records as evenly as possible, but
*not* taking into account the holds per bib ), it takes 21.5 minutes. If we use
10 loops, it takes less then 14 minutes.

Test Plan:
0) Install the Perl library Parallel::Loops
1) Generate a huge number of holds ( a few thousand at the minimum )
2) Run the holds queue builder, use the `time` utility to track how much
   time it took to run
3) Set HoldsQueueParallelLoopsCount to 10
4) Repeat step 2, note the improvement in speed
5) Experiment with other values for HoldsQueueParallelLoopsCount
6) prove t/db_dependent/HoldsQueue.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list