[Koha-bugs] [Bug 28410] [Omnibus] Reduce memory footprint

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 27 16:19:57 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28410

--- Comment #21 from Blou <philippe.blouin at inlibro.com> ---
Did a quick check.  There are .... a lot of them.

One question: installer/data/mysql/updatedatabase.pl calls
C4::Context->preference, which is now an object call behind the scene.  I know
updatedatabase is not the do-it-all anymore, but to ensure it still works for
years to come shouldn't we replace those calls by a local, straight SQL call ?

A few hundred calls to preference, and one to set_preference.


THAT SAID, pragmatism tells me to look for another way: Modify preference() to
use straight DB, and move all the calls to set_preference() and
delete_preference() to Koha::Config::Sysprefs.  

I'll test that in Bug 28411.  Won't prevent major overhaul later, but seems
like a safe approach.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list