[Koha-bugs] [Bug 13645] DBIx connection needs to be cached

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 17 03:58:13 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13645

--- Comment #17 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
I think both patches should be used together: in a persistent environment (in
the sense of plack-like one-time-load execution) we need a module to take care
of reconnections and keep connections open as needed.

Caching the database connection object to reuse it, seems ok. But how long?
what if the connection drops for some reason? That's when DBIx::Connector
proves handy.

My only concern was about this approach being kosher or not, and that's why I
tried to contact ribasushi on the IRC channel, because it smells like a trivial
use case everyone faces when using DBIx::Class :-D

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


More information about the Koha-bugs mailing list