[koha-commits] main Koha release repository branch master updated. v3.22.00-1117-geb04d17

Git repo owner gitmaster at git.koha-community.org
Thu Apr 7 01:55:51 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  eb04d174d91201b05b6e348dc672f9351dc0aaf0 (commit)
      from  dde885675418644a201d00c044233a6387d46c72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eb04d174d91201b05b6e348dc672f9351dc0aaf0
Author: Jacek Ablewicz <abl at biblos.pk.edu.pl>
Date:   Wed Mar 30 12:21:03 2016 +0200

    Bug 16168: Eliminate unneeded C4::Context->dbh calls in C4/Biblio.pm
    
    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.
    
    Test plan:
    
    1) apply patch
    2) ensure that catalogue searches are still working
    3) run t/*Biblio* tests
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    
    Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
    
    Signed-off-by: Brendan Gallagher brendan at bywatersolutions.com

-----------------------------------------------------------------------

Summary of changes:
 C4/Biblio.pm |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list