X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 8C8C9CC8D8 for ; Thu, 17 Jul 2003 13:35:41 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 56492-01 for ; Thu, 17 Jul 2003 13:36:05 +0000 (GMT) Received: from touchme.toronto.redhat.com (to-telus.redhat.com [207.219.125.105]) by svr1.postgresql.org (Postfix) with ESMTP id 18634CC8D7 for ; Thu, 17 Jul 2003 10:35:40 -0300 (ADT) Received: from redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by touchme.toronto.redhat.com (Postfix) with ESMTP id D593480031E; Thu, 17 Jul 2003 09:36:07 -0400 (EDT) Message-ID: <3F16A541.6010703@redhat.com> Date: Thu, 17 Jul 2003 09:31:45 -0400 From: Fernando Nasser Organization: Red Hat Canada User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Felipe Schnack Cc: pgsql-jdbc Subject: Re: setFetchSize References: <20030717102416.0f523cc2.felipes@ritterdosreis.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/74 X-Sequence-Number: 7458 Felipe Schnack wrote: > There is a way that I can set setFetchSize() that will prevent pgsql from caching all the results of a query to server's memory? > I'm trying to search in the archives but any search I try returns 0 results... > Have you tried setting it to a positive value and turning off autocommit (you must be inside a transaction to do this)? -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9