pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedjdbc and large binary files
2+ messages / 2 participants
[nested] [flat]
* jdbc and large binary files
@ 2004-08-28 23:23 Warren Little <wlittle@securitylending.com>
2004-08-28 23:53 ` Re: jdbc and large binary files Oliver Jowett <oliver@opencloud.com>
0 siblings, 1 reply; 2+ messages in thread
From: Warren Little @ 2004-08-28 23:23 UTC (permalink / raw)
To: pgsql-jdbc
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?
thanks
--
Warren Little
Senior Vice President
Secondary Markets and IT Manager
Security Lending Wholesale, LC
www.securitylending.com
Tel: 866-369-7763
Fax: 866-849-8079
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: jdbc and large binary files
2004-08-28 23:23 jdbc and large binary files Warren Little <wlittle@securitylending.com>
@ 2004-08-28 23:53 ` Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Jowett @ 2004-08-28 23:53 UTC (permalink / raw)
To: Warren Little <wlittle@securitylending.com>; +Cc: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-08-28 23:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-28 23:23 jdbc and large binary files Warren Little <wlittle@securitylending.com>
2004-08-28 23:53 ` Oliver Jowett <oliver@opencloud.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox