[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
Thu Mar 14 14:42:46 CET 2024


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

--- Comment #8 from Jonathan Druart <jonathan.druart at gmail.com> ---
Created attachment 163135
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163135&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!

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


More information about the Koha-bugs mailing list