Koha-clms/Koha/REST
Jonathan Druart 372adf555d 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@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 202628342a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-03-18 10:24:37 +01:00
..
Plugin Bug 29510: Make objects.find call search_limited if present 2024-02-19 14:41:11 +01:00
V1 Bug 36277: Improve algorithmic complexity of batch_add 2024-03-18 10:24:37 +01:00
V1.pm Bug 34271: Remove a few Logger statements from REST API 2023-10-18 10:26:03 -03:00