Re: ResultSet & setFetchSize fails to stop heap failures

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: ResultSet & setFetchSize fails to stop heap failures
Дата
Msg-id Pine.BSO.4.64.0805281533140.23353@leary.csoft.net
обсуждение исходный текст
Ответ на ResultSet & setFetchSize fails to stop heap failures  ("U. George" <netbeans@gatworks.com>)
Ответы Re: ResultSet & setFetchSize fails to stop heap failures  ("U. George" <netbeans@gatworks.com>)
Список pgsql-jdbc

On Wed, 28 May 2008, U. George wrote:

> The resultset is a very large  set of rows  ( each row 2 ints and a
> bunch of doubles ) .  I am unable to  convince jdbc to fetch one row at
> a time, and avoid the heap failure.
> Is there a way, or just a bug, or feature deficiency?

To do partial fetches you must turn autocommit off.  See:

http://jdbc.postgresql.org/documentation/83/query.html#query-with-cursor

Kris Jurka



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

Предыдущее
От: "U. George"
Дата:
Сообщение: ResultSet & setFetchSize fails to stop heap failures
Следующее
От: "U. George"
Дата:
Сообщение: Re: ResultSet & setFetchSize fails to stop heap failures