From: Kris Jurka <books@ejurka.com>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Binary protocol support for JDBC
Date: Tue, 20 Jul 2010 15:20:16 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007201518220.19403@leary.csoft.net> (raw)
In-Reply-To: <201007202114.01608.rsmogura@softperience.eu>
References: <201007202114.01608.rsmogura@softperience.eu>
On Tue, 20 Jul 2010, Rados?aw Smogura wrote:
> I partially, and for "test", implemented retrieval data in binary mode
> (instead of text mode) for some Jdbc2 types, because I see great performance
> boost (25% - 50%) on implemented types I think about including this work to
> main JDBC branch.
Are you aware of the existing work in this area?
http://wiki.postgresql.org/wiki/JDBC-BinaryTransfer> This should be done without problem, because I added binary parameter to
> Connection and Datasources, so user can decide to use binary mode
> retrieve or current text mode (default). Currently I implemented
> retrieve of short, int, long, date and BigDecimal. Other simple and
> basic types, used in typically application I will implement shortly.
>
One of the difficulties in the existing patch is knowing when to request
binary transfer and when to request text transfer because for the first
execution the datatypes are not known. How have you addressed
this problem?
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, rsmogura@softperience.eu
Subject: Re: Binary protocol support for JDBC
In-Reply-To: <alpine.BSO.2.00.1007201518220.19403@leary.csoft.net>
References: <201007202114.01608.rsmogura@softperience.eu> <alpine.BSO.2.00.1007201518220.19403@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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