Re: Resultset holdability

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Geert Bevin <gbevin(at)uwyn(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Resultset holdability
Date: 2005-10-21 21:02:37
Message-ID: 4359576D.8050304@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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?

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Geert Bevin 2005-10-21 21:33:08 Re: Resultset holdability
Previous Message Sergei Rogovskiy 2005-10-21 15:57:08 Speed up fixes