Received: from turner.akld.ttp.co.nz (210-55-57-112.adsl.xtra.co.nz [210.55.57.112]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f92JSJn48274 for ; Tue, 2 Oct 2001 15:28:20 -0400 (EDT) (envelope-from andrew@catalyst.net.nz) Received: from heidegger.catalyst.net.nz (dhcp6.akld.ttp.co.nz [10.2.0.55]) by turner.akld.ttp.co.nz (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id HAA25941; Wed, 3 Oct 2001 07:28:11 +1200 X-Authentication-Warning: turner.akld.ttp.co.nz: Host dhcp6.akld.ttp.co.nz [10.2.0.55] claimed to be heidegger.catalyst.net.nz Received: from 127.0.0.1 (ident=unknown) by heidegger.catalyst.net.nz with esmtp (MasqMail 0.1.15) id 15oVC7-7Ek-00; Wed, 03 Oct 2001 07:27:07 +1200 Subject: Re: persistent vs. non-persistent From: Andrew McMillan To: "Brent R. Matzelle" Cc: pgsql-php@postgresql.org In-Reply-To: <20011002142820.86294.qmail@web13004.mail.yahoo.com> References: <20011002142820.86294.qmail@web13004.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.14 (Preview Release) Date: 03 Oct 2001 07:27:07 +1200 Message-Id: <1002050827.27536.7.camel@kant.mcmillan.net.nz> Mime-Version: 1.0 X-Archive-Number: 200110/18 X-Sequence-Number: 571 On Wed, 2001-10-03 at 02:28, Brent R. Matzelle wrote: > --- Andrew McMillan wrote: > > Yes, I believe that is how it works. For a more reasonable > > approach to > > this problem you should look into (something like) DBBalancer > > (see > > SourceForge for more info). > > This DBBalancer is very impressive. What type of performance > gains have you gotten by using it? Performance improvement very much depends on the sorts of queries you do. Gains are particularly evident for complex queries which return only a few records, since query plans and data all end up being cached in the client session. DBBalancer seems to give about the same level of performance improvement as persistent connections do, but without needing one PostgreSQL client / database / apache session. Cheers, Andrew. -- -------------------------------------------------------------------- Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267