]> git.koha-community.org Git - koha.git/commit
Bug 21015: fix performance issue with C4::Members
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Fri, 29 Jun 2018 08:09:41 +0000 (11:09 +0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 16 Nov 2018 13:32:12 +0000 (13:32 +0000)
commitf130fd6ec9538fff02582b6dae40e0445f607320
tree57ffe7da1b37df5b16159dd911381014bc88642a
parent8a98462739ab816a31aa9a59290e6a1bc54ab3f6
Bug 21015: fix performance issue with C4::Members

loading Koha::Schema ("use Koha::Schema;") takes significantly time as
it loads almost a couple hundred classes. Koha::Database has done that
already once and we can use it to get the ResultSet "Borrower" as
well, so let's use that. This also make the code more unified because
Koha::Database is used throughout the code instead of Koha::Schema.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 83e0765f448c35c6f387d41fe39feb94b9bc64f3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Members.pm