Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 3809 invoked from network); 23 Nov 2005 20:16:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Nov 2005 20:16:07 -0000 Received: (qmail 72291 invoked by uid 500); 23 Nov 2005 20:16:00 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 72270 invoked by uid 500); 23 Nov 2005 20:16:00 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 72259 invoked by uid 99); 23 Nov 2005 20:15:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 12:15:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.40.35.68] (HELO webmaillogin.com) (216.40.35.68) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 12:17:31 -0800 Received: from [68.144.202.83] (account pierre@unifymedia.com HELO [192.168.2.191]) by fr4.webmaillogin.com (CommuniGate Pro SMTP 4.3.8) with ESMTPA id 116399701; Wed, 23 Nov 2005 15:15:36 -0500 Message-ID: <4384CDE1.4050202@serverspy.net> Date: Wed, 23 Nov 2005 13:15:29 -0700 From: Pierre Smolarek User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: "Philippe M. Chiasson" CC: Perrin Harkins , modperl@perl.apache.org, pgollucci@p6m7g8.com Subject: Re: Apache::DBI + DBD::Multiplex References: <43835219.1070807@serverspy.net> <4383D9D5.2000501@p6m7g8.com> <4383EC57.9080709@serverspy.net> <4383ECD1.3000301@elem.com> <4384A7BE.1020805@serverspy.net> <4384CA3A.4040204@ectoplasm.org> In-Reply-To: <4384CA3A.4040204@ectoplasm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Philippe M. Chiasson wrote: > 2 possible avenues to investigate: > - Change your code to not use an array-ref as mx_dsns argument but some string (comma delimited, etc) > - Look at changing Apache::DBI to not use the ref as part of the dsn cache key, but use the contents of the array > something along the lines of : > $Key = Dumper(\@_); > The arrayref is a requirment of multiplex. I'll do some hacking in both modules and see what works. I'm not certain if the first possible change would work as suggested as Apache::DBI would end up caching possibly just one, if any of the multiple potential DB connections. The target will be to cache a persistant connection for all DB servers that multiplex is setup to query against. I'm not completly up to scratch when or how Apache::DBI does its magic, either within the connect call of my DBI handle or within Multiplex's (as multiplex does a similar thing to Apache::DBI in redirecting the connect request). I'll report back any findings. Many thanks, Pierre