[Koha-bugs] [Bug 18861] branch_transfer_limits needs keys

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jul 2 00:02:30 CEST 2017


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

Alex Buckley <alexbuckley at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #64676|0                           |1
        is obsolete|                            |

--- Comment #2 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 64764
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64764&action=edit
Bug 18861 - branch_transfer_limits needs keys

The branch transfers limits are edited in :
/cgi-bin/koha/admin/branch_transfer_limits.pl
This page calls a loop on IsBranchTransferAllowed with all destination branches
and codes (ccodes or itemtypes).

This can takes a huge time because table branch_transfer_limits has no keys.

Since ccode or itemtype may be used, this patch adds a key on both combinaison
: ccode/fromBranch/toBranch and itemtype/fromBranch/toBranch.

Tested on a table with 66000 entries, time whent from 26 second to less than 1
second.

Test plan :
- Go to Administration > Library transfer limits
- Check page load is faster
- Uncheck a checkbox
- Save
=> Verify save is OK
- Change branch and same tests

Followed test plan which worked as intended
Signed-off-by: Alex Buckley <alexbuckley at catalyst.net.nz>

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


More information about the Koha-bugs mailing list