Koha-clms/installer/data/mysql
Kyle M Hall d8fc079eee
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::ForkManager
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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-10-25 11:09:53 +02:00
..
atomicupdate Bug 28833: Speed up holds queue builder via parallel processing 2024-10-25 11:09:53 +02:00
db_revs Bug 38193: DBRev 24.06.00.043 2024-10-24 18:27:28 +02:00
en Bug 37803: Add patron notification when a new booking has been created successfully 2024-10-24 18:27:21 +02:00
localization Bug 27490: (follow-up) Fix custom installer files 2024-09-13 13:54:26 +02:00
mandatory Bug 28833: Speed up holds queue builder via parallel processing 2024-10-25 11:09:53 +02:00
backfill_statistics.pl
…
fix_unclosed_nonaccruing_fines_bug17135.pl
…
kohastructure.sql Bug 38193: Add cancellation_reason field to bookings table 2024-10-24 18:27:27 +02:00
labels_upgrade.pl
…
needs_update.pl Bug 34088: Move the 'needs update' test to a separate script 2024-09-17 10:48:39 +02:00
patroncards_upgrade.pl
…
update22to30.pl
…
updatedatabase.pl Bug 34088: Move the 'needs update' test to a separate script 2024-09-17 10:48:39 +02:00