From 73075e7c7a5d1d005ad35dbb4e65a35c3e876d8c 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 Signed-off-by: Emily Lamancusa --- C4/AuthoritiesMarc.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 1656a2ba9b..1bee7998d1 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1666,7 +1666,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.34.1