Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB - Mailing list pgsql-bugs

From Greg Stark
Subject Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Date
Msg-id 407d949e0912210925m7c1d1758g27a17d7996891324@mail.gmail.com
Whole thread Raw
In response to Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB  (Ankit Kumar <ankitk@xebia.com>)
Responses Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-bugs
On Mon, Dec 21, 2009 at 5:04 PM, Ankit Kumar <ankitk@xebia.com> wrote:
> Thanks for your response. Hibernate works well when I change the DB to SQL
> server but somehow the moment I point to Postgresql it start generating
> OutOfMemory. Is there some configuration at DB end to ensure it starts using
> the cursors.

No Postgresql is not generating these errors -- they're Java errors
and Postgresql is not written in Java. You'll get better luck starting
with the top and working down. The Hibernate people -- I don't know
what their mailing list is -- can answer questions about what
Hibernate does differently for MSSQL versus Postgres. If they say it's
doing the same thing then once you're clear on what that is that it's
doing you can speak to the JDBC Postgresql driver people
(pgsql-jdbc@postgresql.org) and ask whether they handle that case
poorly. But if you start with the jdbc people and you can't answer
questions about what Hibernate is doing then they're not going to know
how to help (unless they've seen it before I guess).


--
greg

pgsql-bugs by date:

Previous
From: Ankit Kumar
Date:
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Next
From: Craig Ringer
Date:
Subject: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB