Koha-clms/Koha/REST
Tomas Cohen Arazi be277cd4c6 Bug 29032: Pre-load ILL backends to speed up response
Bug 22440 will rewrite the route and make it even more efficient by
prefetching the related data instead of performing several queries in
loops.

In the meantime, we can make this controller perform better with a
simple intervention: load backends once, and use the
$request->_backend() setter to pre-set it before using the objects.

To test:
1. Perform any usual ILL requests listing, try having several
=> FAIL: Notice it takes a weird amount of time to load
2. Apply this patch
3. Restart all
4. Repeat 1
=> SUCCESS: It feels fast enough!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7b1dc9d5f9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit fa84d0704f)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-10-17 03:12:41 +02:00
..
Plugin Bug 23653: Remove uneeded cond test 2021-06-21 00:51:05 +02:00
V1 Bug 29032: Pre-load ILL backends to speed up response 2021-10-17 03:12:41 +02:00
V1.pm Bug 23653: use local copy of swagger v2 schema 2021-06-21 00:51:05 +02:00