https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16168

            Bug ID: 16168
           Summary: Eliminate unneeded C4::Context->dbh calls in
                    C4/Biblio.pm
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Right now, ->dbh calls are actually quite expensive (they involve DB connection
health checks, each and every time). Some speed-sensitive subroutines inside
C4/Biblio.pm (GetMarcStructure, GetAuthorisedValueDesc) have this statement

    my $dbh = C4::Context->dbh;

on top of the code, but they don't always/don't usually need DB handle - not at
that stage at least. This trivial patch eliminates unneeded ->dbh calls in
those subroutines. With it, average GetMarcStructure() running time goes down
from 14 miliseconds to 9 miliseconds (on top of Bug 16166), it also makes
catalogue search profiling a bit easier.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to