Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7C16E133655C for ; Sun, 27 Mar 2011 12:20:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 46895-06 for ; Sun, 27 Mar 2011 15:19:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id AEC2F1337B43 for ; Sun, 27 Mar 2011 12:19:47 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q3rkn-0007mi-Dh for pgsql-jdbc@postgresql.org; Sun, 27 Mar 2011 17:19:45 +0200 Received: from 188.174.159.176 ([188.174.159.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Mar 2011 17:19:45 +0200 Received: from spam_eater by 188.174.159.176 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Mar 2011 17:19:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: JDBC gripe list Date: Sun, 27 Mar 2011 17:19:45 +0200 Lines: 18 Message-ID: References: <4D8EF5E5020000250003BCA3@gw.wicourts.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 188.174.159.176 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.735 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_NUMERIC_HELO=1.164, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201103/76 X-Sequence-Number: 21631 Oliver Jowett wrote on 27.03.2011 16:15: >> At the top of my list is the need to use a cursor to avoid >> materializing the entire result set in heap during execution of an >> execute method. Pulling data off the wire should be done in >> ResultSet.next() method. > > Do you mean something beyond the batching you can do by setting a > suitable fetchsize? > Or do you mean you want to lift the restrictions on when that batching > can actually be used? > Or something else? > I agree with Dave here. Having a default that prevent the entire result to be loaded into the client memory does make a lot of sense to me. Regards Thomas