Skip site navigation (1) Skip section navigation (2)

Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Date: 2009-12-22 07:52:40
Message-ID: hgpts7$u9m$1@ger.gmane.org (view raw or flat)
Thread:
Lists: pgsql-jdbc
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


In response to

pgsql-jdbc by date

Next:From: rsmoguraDate: 2009-12-22 07:54:48
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Previous:From: Craig RingerDate: 2009-12-22 04:49:33
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group