[Koha-bugs] [Bug 36277] t/db_dependent/api/v1/transfer_limits.t is failing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 12:03:28 CET 2024


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

--- Comment #18 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 163200
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163200&action=edit
Bug 36277: Improve algorithmic complexity of batch_add

The 2 nested loops are terrible in term of algorithmic complexity.
Especially if we are fetching from there.

The goal of this patch is to fetch all the limits outside of the loop.

If you have 100 libraries, it will remove 100^2 - 1 fetches!

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list