Skip site navigation (1) Skip section navigation (2)

JDBC4 Binary Mode with Arrays

From: bubba postgres <bubba(dot)postgres(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: JDBC4 Binary Mode with Arrays
Date: 2011-04-01 18:44:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Sorry for the cross post, I put this on general first:

In my current application I am sending a lot of data to/from the DB with
JDBC, and specifically arrays of Double. (or even Double[][]).
I have been converting everything into a string representation of the array
with StringBuffer, which eats a lot of memory.

I note that there is this web page:

Which made me think I might be saved.

After trying out the JDBC4 driver in DBCP, I see that
Connection.createArray(...) still just creates a big string under the
covers. Is that the expected behavior? Am I doing it wrong?
Will the String get converted to binary representation again before hitting
the wire?



pgsql-jdbc by date

Next:From: Kris JurkaDate: 2011-04-02 06:43:06
Subject: Re: JDBC4 Binary Mode with Arrays
Previous:From: Maciek SakrejdaDate: 2011-04-01 16:36:01
Subject: Re: JDK1.7 support

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group