Bugzilla – Attachment 123784 Details for
Bug 28833
Speed up holds queue builder via parallel processing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28833: (follow-up) Only spawn multiple processes if there are more records than loops specified
Bug-28833-follow-up-Only-spawn-multiple-processes-.patch (text/plain), 953 bytes, created by
Kyle M Hall (khall)
on 2021-08-11 11:47:51 UTC
(
hide
)
Description:
Bug 28833: (follow-up) Only spawn multiple processes if there are more records than loops specified
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-08-11 11:47:51 UTC
Size:
953 bytes
patch
obsolete
>From 1e563e9edb72a49d38fa3c6bb49f1ebf863e3e59 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 11 Aug 2021 07:46:25 -0400 >Subject: [PATCH] Bug 28833: (follow-up) Only spawn multiple processes if there > are more records than loops specified > >--- > C4/HoldsQueue.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm >index ebbeeb53f6..c804d960b7 100644 >--- a/C4/HoldsQueue.pm >+++ b/C4/HoldsQueue.pm >@@ -201,6 +201,7 @@ sub CreateQueue { > # Split the list of bibs into groups to run in parallel > if ( $loops > 1 ) { > my $bibs_per_chunk = ceil( scalar @$bibs_with_pending_requests / $loops ); >+ $bibs_per_chunk = @$bibs_with_pending_requests if @$bibs_with_pending_requests <= $bibs_per_chunk; > my @chunks; > > push( @chunks, [ splice @$bibs_with_pending_requests, 0, $bibs_per_chunk ] ) while @$bibs_with_pending_requests; >-- >2.30.1 (Apple Git-130)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28833
:
123656
|
123657
|
123659
|
123671
|
123679
|
123688
|
123689
|
123783
|
123784
|
123785
|
123786
|
123996
|
126200
|
126202
|
126216
|
167349
|
173045
|
173046
|
173262