]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 8 Nov 2018 02:18:48 +0000 (02:18 +0000)
commit83e0765f448c35c6f387d41fe39feb94b9bc64f3
treef013a214c3848bd358a5bd38760857032c3f03c1
parenta83bc8ca4c15200c7d66a578f37d02095541018f
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>
C4/Members.pm