[mod_python] permanent db connection (more than in FAQ 3.3)

Mateusz Korniak mateusz at ant.gliwice.pl
Fri Nov 15 16:38:47 EST 2002


On Friday 15 November 2002 16:27, sandor.kopanyi at mailbox.hu wrote:
> Hi,
>
> In the mod_python FAQ 3.3 there is a good example of a 'permanent'
> database
> connection. This works fine, the connection is reused, as long as the
> request
> is handled in the same child process (apache child process). But a new
> child
> process gets a new interpreter => new connection is created. At least
> that's
> what I guess.

Yes.
I keep one connection per each apache process.

-- 
Mateusz Korniak
"Black holes are where God divided by zero." - Steven Wright




More information about the Mod_python mailing list