Re: preloading modules and apache::dbi

2012-01-19 Thread Perrin Harkins
On Thu, Jan 19, 2012 at 8:48 AM, Josh Narins wrote: > The idea of Apache::DBI is that you get to pool connections. > > If you call Apache::DBI->new and there is a spare connection, you get it, if > not, one is created for you. That's a little misleading. There's no actual pooling. Connections

Re: preloading modules and apache::dbi

2012-01-19 Thread mike cardeiro
> From: Perrin Harkins > However, if you are trying to make the handle persistent >yourself, by putting it in a global variable or something similar, >that will be a problem.  You have to close all connections you open >during startup, and open new ones in the child processes. > heres kinda s

Re: preloading modules and apache::dbi

2012-01-19 Thread Michael Peters
On 01/19/2012 08:48 AM, Josh Narins wrote: The idea of Apache::DBI is that you get to pool connections. If you call Apache::DBI->new and there is a spare connection, you get it, if not, one is created for you. This isn't quite accurate. Apache::DBI doesn't do connection pooling, it manages pe

RE: preloading modules and apache::dbi

2012-01-19 Thread Josh Narins
The idea of Apache::DBI is that you get to pool connections. If you call Apache::DBI->new and there is a spare connection, you get it, if not, one is created for you. You almost certainly don't want one $db object being shared as a member of a class, unless your entire program also happens to r

Re: Problem withe memcached inside the handler

2012-01-19 Thread Idel Fuschini
Another information, in other platform working well Idel On 19 January 2012 12:50, Idel Fuschini wrote: > Hi I've got this simple module: > > #file:Apache2/AMFTest.pm; > # > > # > # Created by Idel Fuschini > # Date: 01/08/10 > # Site: http://www.apachemobilefilte

Re: preloading modules and apache::dbi

2012-01-19 Thread Perrin Harkins
On Wed, Jan 18, 2012 at 5:08 PM, mike cardeiro wrote: > I have a library I want to preload.  This library makes a database > connection and assigns it to a variable that is exported so all programs can > use this handle. > > will this global handle db handle be a single handle amongst all apache >

Problem withe memcached inside the handler

2012-01-19 Thread Idel Fuschini
Hi I've got this simple module: #file:Apache2/AMFTest.pm; # # # Created by Idel Fuschini # Date: 01/08/10 # Site: http://www.apachemobilefilter.org # Mail: idel.fusch...@gmail.com package Apache2::AMFTest; use strict; use warnings; use Apache2::AMFCommonLib