https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21015
Bug ID: 21015
Summary: Members.pm slow because it loads twice Koha::Schema
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Database
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Koha/C4/Members.pm currently loads by itself Koha::Schema using "use
Koha::Schema" even though this is not required as we could use Koha::Database
that has already done that (another further issue is why does Koha::Database
load all the classes in Koha/Schema/Result/ when it could just load the ones
that are needed).
Loading the Koha::Schema takes for me around 2 seconds on my machine so it
would be quite a big performance boost to remove it. I got a 30% faster load
time on cgi-bin/koha/members/moremember.pl with a patch I made. I will attach
it here but be warned: I have not run any tests and I don't know if it has even
syntax errors because I'm doing the patch on a machine without a proper
development environment.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/