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

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Дата
Msg-id hgpts7$u9m$1@ger.gmane.org
обсуждение исходный текст
Ответ на OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB  (Ankit Kumar <ankitk@xebia.com>)
Список 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB
Следующее
От:
Дата:
Сообщение: Re: OutOfMemory hibernate scroll with 2M records | Postgresql 8.4 DB