in reply to DBD ProxyServer Not Caching Connections

You're right, it doesn't cache connections. In general it has terrible performance and is a last resort. If you want to try caching connections, go for it, but make sure you don't try to use them across multiple processes, i.e. make sure they are opened after forking.
  • Comment on Re: DBD ProxyServer Not Caching Connections

Replies are listed 'Best First'.
Re^2: DBD ProxyServer Not Caching Connections
by harleypig (Monk) on Feb 17, 2006 at 18:01 UTC

    Thank you for that clarification.

    What I'm trying to figure out (I'm learning as I go, but I'm running out of time) is whether or not the following scenario is correct (or even a good idea):

    A cgi script on a bank of web boxes uses DBI->connect_cache to connect to a dbi proxy, which then uses DBI->connect_cache to a bank of db boxes.

    I can't find anything seems to do this, or similar. Thanks for the pointer.

    Harley J Pig
      What you're suggesting sounds reasonable, but I think it will require more work than you expect. The proxy server is still likely to be slow after this change, compared to direct access.

        Yeah, that's what we've decided. It would take more time to build our own proxy correctly and then optimize it than we have. So we've decided to stick with a simpler solution. Thanks.

        Harley J Pig