Bugzilla – Attachment 167662 Details for
Bug 37035
Merging authorities triggers rebuilding holds for all affected records when RealTimeHoldsQueue is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37035: Merging authorities triggers rebuilding holds for all affected records when RealTimeHoldsQueue is enabled
Bug-37035-Merging-authorities-triggers-rebuilding-.patch (text/plain), 1.70 KB, created by
Emily Lamancusa (emlam)
on 2024-06-12 13:58:49 UTC
(
hide
)
Description:
Bug 37035: Merging authorities triggers rebuilding holds for all affected records when RealTimeHoldsQueue is enabled
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-06-12 13:58:49 UTC
Size:
1.70 KB
patch
obsolete
>From 73075e7c7a5d1d005ad35dbb4e65a35c3e876d8c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 <matt.blenkinsop@ptfs-europe.com> >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > 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
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 37035
:
167444
|
167445
|
167456
| 167662