From 65907977f88b2656c1503040adcbbb78de689223 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 5 Jun 2024 10:53:26 -0400 Subject: [PATCH] Bug 37035: Merging authorities triggers rebuilding holds for all affected records when RealTimeHoldsQueue is enabled If RealTimeHoldsQueue is on, merging authorities triggers a update_holds_queue_for_biblios background job for each affected record. This can result in thousands of unnecessary queued jobs since this change will not affect hold-ability. In a large catalog this can be a crippling number of background jobs that will delay more important jobs. Test Plan: 1) Enable RealTimeHoldsQueue 2) Merge authorities with merge_authorities.pl 3) Note a update_holds_queue_for_biblios background job is queued for each record touched 4) Apply this match 5) Merge authorities again 6) Note that no update_holds_queue_for_biblios jobs were queued Signed-off-by: Matt Blenkinsop --- C4/AuthoritiesMarc.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index b595230c5d..bc459cc1c0 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1664,7 +1664,10 @@ sub merge { } } next if !$update; - ModBiblio( $marcrecord, $biblio->biblionumber, $biblio->frameworkcode, { disable_autolink => 1 } ); + ModBiblio( + $marcrecord, $biblio->biblionumber, $biblio->frameworkcode, + { disable_autolink => 1, skip_holds_queue => 1 } + ); $counteditedbiblio++; } return $counteditedbiblio; -- 2.39.3 (Apple Git-146)