[Koha-bugs] [Bug 19819] C4::Context->dbh is unreasonably slow
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 2 08:47:47 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19819
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook at prosentient.com.au
--- Comment #14 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #9)
> Did you try this patch in production? I am expecting regressions on the
> issues with had on bug 14778 (like "server has gone away").
This was exactly what I was going to say. Database connection caching is a nice
idea but not something you want to implement naively.
I'd suggest not trying to re-invent the wheel on this one, and look somewhere
else for database connection pooling.
And actually looking at C4::Context::dbh... I see that
Koha::Database->schema->storage->dbh... which does cache the $schema object in
a package level variable.
This bug report was opened nearly 2 years ago, so maybe it is no longer
relevant.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list