Bug 34815 - Improve efficiency of C4::Biblio::LinkBibHeadingsToAuthorities
Summary: Improve efficiency of C4::Biblio::LinkBibHeadingsToAuthorities
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL: misc/link_bibs_to_authorities.pl
Keywords:
Depends on: 21828
Blocks: 7923
  Show dependency treegraph
 
Reported: 2023-09-18 10:37 UTC by Martin Renvoize
Modified: 2023-09-18 10:37 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.