Koha-clms/Koha/REST/V1
Tomas Cohen Arazi e9d4702520 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>
(cherry picked from commit be277cd4c6)
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit be277cd4c6)
2021-10-18 02:40:30 +00:00
..
Acquisitions Bug 23858: (follow-up) Return code fix 2019-10-28 12:36:46 +00:00
Clubs Bug 23843: Add mapping to Koha::Club::Holds 2019-10-23 18:03:03 +01:00
Patrons Bug 23805: Update 'Pay' to 'PAYMENT' for consistency 2019-10-24 17:35:20 +01:00
Auth.pm Bug 26322: [19.11.x] Permissions not checked correctly for plugins 2020-09-22 10:15:23 +12:00
Biblios.pm Revert "Bug 28604: Prevent double encoding of MARC::Record::MiJ->to_mij output" 2021-09-20 08:27:48 +00:00
Checkouts.pm Bug 23843: Add mapping to Koha::Checkout 2019-10-23 18:02:59 +01:00
Cities.pm Bug 23893: Use in /cities 2020-01-18 15:59:49 +00:00
Holds.pm Bug 27179: Misspelling of Method in REST API files 2021-02-08 21:58:31 +01:00
Illrequests.pm Bug 29032: Pre-load ILL backends to speed up response 2021-10-18 02:40:30 +00:00
Items.pm Bug 23667: Add route to GET /items 2019-10-29 12:20:35 +00:00
Library.pm Bug 23843: Add mapping to Koha::Library 2019-10-23 18:03:11 +01:00
OAuth.pm Bug 23146: Add support for Basic auth on the OAuth2 token endpoint 2019-06-24 16:05:31 +01:00
Patrons.pm Bug 23634: (QA follow-up) Our PUT is really a PATCH 2020-08-25 15:36:33 +12:00
ReturnClaims.pm Bug 28586: (follow-up) updated_by should be set 2021-07-12 01:10:35 +00:00
Stage.pm Revert "Bug 22026: Removed 'use Modern::Perl;' from Koha::REST::classes" 2019-02-26 11:04:08 -05:00
Static.pm Bug 27179: Misspelling of Method in REST API files 2021-02-08 21:58:31 +01:00