Re: Prepared Statement Memory Size - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Prepared Statement Memory Size
Date
Msg-id Pine.BSO.4.63.0607181205001.11227@leary2.csoft.net
Whole thread Raw
In response to Prepared Statement Memory Size  ("jennie browne" <jiebe@hotmail.com>)
List pgsql-jdbc

On Tue, 18 Jul 2006, jennie browne wrote:

> We have a prepared statement example below:
>
> With no dynamic parameters populated during runtime it will return
> roughly 1million rows. During execution of the query the
> preparedStatment grows in size up to 80MB and beyond.
>
> We have the fetchSize set to 1000
> And autocommit set to false.
>
> And the following params set
>
> stmt =
> conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
>

setFetchSize will only work with ResultSet.TYPE_FORWARD_ONLY.  It has no
effect on scrollable ResultSets.

Kris Jurka

pgsql-jdbc by date:

Previous
From: "Jennie Browne"
Date:
Subject: PreparedStatment Memory Size
Next
From: Dave Cramer
Date:
Subject: Re: Prepared Statement Memory Size