[Koha-bugs] [Bug 16365] New: Selectively introduce GetMarcStructure() "unsafe" variant for better performance
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 27 14:03:58 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16365
Bug ID: 16365
Summary: Selectively introduce GetMarcStructure() "unsafe"
variant for better performance
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: abl at biblos.pk.edu.pl
QA Contact: testopia at bugs.koha-community.org
GetMarcStructure() currently uses Koha::Cache in the "safe" mode (returning
deep copy of the result data structure by default), which causes numerous
performance issues in many Koha scripts. Switching it to the "unsafe" mode
globally (2nd patch from Bug 16140) resolves those issues, but ensuring that it
is regression-free (and that it will stay that way in the future) is far from
easy.
This patch proposes a bit more manageable solution, it introduces a possibility
to use "unsafe" variant selectively (only in those places in the code where
GetMarcStructure() is called repetively). That way, amount of the code that
needs to be audited for possible problems gets vastly reduced, without any
performance trade-offs.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list