Re: OutOfMemory when inserting stream of unknown length

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: OutOfMemory when inserting stream of unknown length
Дата
Msg-id 4125C871.1070608@opencloud.com
обсуждение исходный текст
Ответ на OutOfMemory when inserting stream of unknown length  ("Mikko T." <mtiihone@cc.hut.fi>)
Ответы Re: OutOfMemory when inserting stream of unknown length
Список pgsql-jdbc
Mikko T. wrote:

> But now the current implementation forces the user of the
> setBinaryStream to buffer all bytes to memory just to know how many
> bytes the stream will actually hold. And after that it can already call
> setBytes thus making the whole setBinaryStream useless when the stream
> length is not known beforehand.

Not true -- consider the case where you know the length but the data is
held out of heap (for example, a large NIO buffer or a file on disk).

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: OutOfMemory when inserting stream of unknown length
Следующее
От: "Mikko T."
Дата:
Сообщение: Re: OutOfMemory when inserting stream of unknown length