in reply to Database Pooling with DBI

What makes you think you need database connection pooling? Apache::DBI gives persistent connections, which solves the speed problem. It's easy to use, and whatever caveats you've heard are probably exaggerated. Unless some of your mod_perl processes are handling requests that don't involve a database at all, they should hold onto their connections.

Doing actual sharing of database handles is hard, since it involves passing sockets and file handles around between processes safely. That's why it hasn't been done.

Replies are listed 'Best First'.
Re: Re: Database Pooling with DBI
by tomhukins (Curate) on Feb 28, 2002 at 16:20 UTC
    I agree that it's often unnecessary to pool database connections, especially if the heavyweight Web servers are configured to use a lightweight front-end server as recommended in the mod_perl guide. I also agree that it's difficult to do. DBD::Proxy looks like an interesting attempt to deal with this, although its documentation mentions that its connect_cached method, which pools connections using an intermediary process, is new and still experimental. It might be worth a look, though.
      It's not worth a look. It's very slow.