[Koha-bugs] [Bug 20377] New: Various speed tweaks to 'remove_unused_authorities.pl' script

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 13 00:18:04 CET 2018


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

            Bug ID: 20377
           Summary: Various speed tweaks to 'remove_unused_authorities.pl'
                    script
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: mtj at kohaaloha.com
        QA Contact: testopia at bugs.koha-community.org
                CC: robin at catalyst.net.nz

Here is a patch to make 'remove_unused_authorities.pl' a bit faster
i get a 5x speedup after this patch

fyi: i pinched most of this patch from bulkmarcimport.pl


1/ import a bunch of authority record into a Koha, and index

2/ run script, note execution time
  $ time perl ./misc/migration_tools/remove_unused_authorities.pl 
  real    0m50s

3/ apply patch

4/ run script again, and notice it's a bit faster
  $ time perl ./misc/migration_tools/remove_unused_authorities.pl 
  real    0m10s

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list