Re: Resultset holdability - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Resultset holdability
Date
Msg-id 43595EC1.90800@opencloud.com
Whole thread Raw
In response to Re: Resultset holdability  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Resultset holdability
List pgsql-jdbc
Oliver Jowett wrote:
> Geert Bevin wrote:
>
>> I have a resultset that has many rows with bytea data.
>>
>> It looks like me that when I iterate through the rows, the previous
>> rows are only garbage collectable when the resultset is closed, even
>> if I setup the statement like this:
>> statement.setFetchDirection(ResultSet.FETCH_FORWARD);
>> statement.setFetchSize(1);
>>
>> Since it's bytea data, this fills up the memory very quickly. Any
>> thoughts on how to reduce this memory overhead and have the resultset
>> discard any previously fetched data?
>
>
> What driver version are you using?
> What server version are you using?
> Have you turned autocommit off?

One more:

Is the statement/resultset TYPE_FORWARD_ONLY?

-O

pgsql-jdbc by date:

Previous
From: Geert Bevin
Date:
Subject: Re: Resultset holdability
Next
From: Geert Bevin
Date:
Subject: Re: Resultset holdability