Bug 34815

Summary: Improve efficiency of C4::Biblio::LinkBibHeadingsToAuthorities
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: a.roussos, david, dcook, victor
Version: Main   
Hardware: All   
OS: All   
URL: misc/link_bibs_to_authorities.pl
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26641
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 21828    
Bug Blocks: 7923    

Description Martin Renvoize 2023-09-18 10:37:36 UTC
+++ This bug was initially created as a clone of Bug #21828 +++

The routine iterates through all fields in a biblio and compares them to a list of acceptable tags that may link to an authority.  It may be more efficient to do the opposite iteration, working through acceptable authority tags and looking for the existence of that field in the biblio. (Note.. I've not tested this hypothesis.. it depends heavily on how efficient it is to fetch a single MARC tag using Marc::Record)

Note: Bug 21828 was repurposed for a distinct, but also worthwhile performance boost in the UNIMARC case.. I'd still be interested in the above hypothesis being tested if anyone fancies it.. so I've cloned the original bug just so the idea isn't lost.