From: Oliver Jowett <oliver@opencloud.com>
To: Geert Bevin <gbevin@uwyn.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Resultset holdability
Date: Sat, 22 Oct 2005 10:33:53 +1300
Message-ID: <43595EC1.90800@opencloud.com> (raw)
In-Reply-To: <4359576D.8050304@opencloud.com>
References: <D38F6D5C-FEDE-4ABB-9D1B-B09BC9B451E9@uwyn.com>
<4359576D.8050304@opencloud.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, gbevin@uwyn.com
Subject: Re: Resultset holdability
In-Reply-To: <43595EC1.90800@opencloud.com>
References: <D38F6D5C-FEDE-4ABB-9D1B-B09BC9B451E9@uwyn.com> <4359576D.8050304@opencloud.com> <43595EC1.90800@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox