Re: jdbc and large binary files

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: jdbc and large binary files
Дата
Msg-id 41311ADF.9060207@opencloud.com
обсуждение исходный текст
Ответ на jdbc and large binary files  (Warren Little <wlittle@securitylending.com>)
Список pgsql-jdbc
Warren Little wrote:
> Hello,
>    I'm currently using the LO api with the oid data type for storing
> large objects.  I would like to switch to bytea data.  When I last
> tested this idea (over 8 months ago) I experienced massive memory bloat
> in the JDBC application.  I recall seeing some threads on fixing this
> problem.  Can anyone tell me if this issue has been addressed in the
> latest driver?

PreparedStatement.setBinaryStream() will now stream data directly to the
server with no additional heap storage needed. setBytes() takes a copy
of the bytearray it is given, but otherwise behaves like setBinaryStream().

ResultSet still stores the whole value on heap. To avoid this requires
protocol modifications.

-O

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

Предыдущее
От: Warren Little
Дата:
Сообщение: jdbc and large binary files
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: broken docmentation link