From: Thomas Dudziak <tomdzk@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: binary protocol was Performance problem with timestamps in result sets
Date: Fri, 10 Mar 2006 01:05:47 +0100
Message-ID: <224f32340603091605x59673fdt9a8d69b4f5512c22@mail.gmail.com> (raw)
In-Reply-To: <00cc01c64376$7661ca40$c29c143e@w128mtec>
References: <00cc01c64376$7661ca40$c29c143e@w128mtec>
On 3/9/06, mikael-aronsson <mikael-aronsson@telia.com> wrote:
> How about the actual transport cost difference between text and binary
> protocols ? it may not be any big difference though, and many times text
> representation can be smaller then a binary protocol.
Really ? I would have thought its vice versa. E.g. a float is usualy 4
(or 8) bytes in binary, but can be a lot longer in text depending on
the format.
> I do not think it would give much though to use the binary protocol as Java
> is not very good when it comes to converting binary data back to native
> values unless it is serialized or you start to mess around with nio buffers,
> so in the end I do not think there would be much difference in performance.
Personally I would be interested in whether a binary protocol impl in
the JDBC driver would bring benefits or not for the other, simpler
types (int, string, ...). If they don't suffer, then it might actually
be worthwhile to investigate a binary impl. That is being said of
course from a pure user perspective - I have no insight whatsoever in
the core workings of the JDBC driver.
cheers,
Tom
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: tomdzk@gmail.com
Subject: Re: binary protocol was Performance problem with timestamps in result sets
In-Reply-To: <224f32340603091605x59673fdt9a8d69b4f5512c22@mail.gmail.com>
References: <00cc01c64376$7661ca40$c29c143e@w128mtec> <224f32340603091605x59673fdt9a8d69b4f5512c22@mail.gmail.com>
* 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