From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Date: Tue, 22 Dec 2009 08:52:40 +0100
Message-ID: <hgpts7$u9m$1@ger.gmane.org> (raw)
In-Reply-To: <4B3047E7.9020901@xebia.com>
References: <4B3047E7.9020901@xebia.com>
Ankit Kumar wrote on 22.12.2009 05:15:
> It appears the driver class is loading all entity objects in memory and
> not releasing them as expected in a scroll operation.
That's documented:
http://jdbc.postgresql.org/documentation/84/query.html#query-with-cursor
Just enable "query based retrieval" and the driver does not load everything into memory.
Thomas
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: spam_eater@gmx.net
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
In-Reply-To: <hgpts7$u9m$1@ger.gmane.org>
References: <4B3047E7.9020901@xebia.com> <hgpts7$u9m$1@ger.gmane.org>
* 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