X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8A520329E45 for ; Thu, 23 Sep 2004 08:16:52 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91359-03 for ; Thu, 23 Sep 2004 07:16:45 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 614A9329E43 for ; Thu, 23 Sep 2004 08:16:45 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CANqM-0004nn-00; Thu, 23 Sep 2004 19:16:42 +1200 Message-ID: <41527858.6060909@opencloud.com> Date: Thu, 23 Sep 2004 19:16:40 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc Subject: Re: raising the default prepareTheshold References: <414CA8A0.7070707@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/159 X-Sequence-Number: 11049 Kris Jurka wrote: > > On Mon, 20 Sep 2004, Kris Jurka wrote: > > >>At the same time do you think we should change the default fetchSize to >>1000 or so? Even though it only works for FORWARD_ONLY ResultSets it >>could reduce the number of complaints we see here without much penalty. >>Previously the cursor implementation was more limiting by ruling out >>server prepared statements. >> > > > Actually a little testing shows that a non-zero fetchSize implies using a > named statement instead of the unnamed statement. So there will be some > potentially negative planning differences, so I'm going to retract this > suggestion. Ah, this is because if we used the unnamed statement, the created portal gets closed when the unnamed statement is reused. I forgot about that. -O