pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Markus Schaber <schabios@logi-track.com>
To: Kris Jurka <books@ejurka.com>
Cc: PostGIS Development Discussion <postgis-devel@postgis.refractions.net>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Cc: David Blasby <dblasby@openplans.org>
Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead
Date: Thu, 24 Feb 2005 10:39:14 +0100
Message-ID: <421DA0C2.10407@logi-track.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0502231405360.11888@leary.csoft.net>
References: <1109097544.421b7c482a529@webmail.limegroup.com>
<421C99E1.4070107@logi-track.com>
<Pine.BSO.4.56.0502231405360.11888@leary.csoft.net>
Hi, Kris,
Kris Jurka schrieb:
>>Maybe your postgresql driver only uses text transfer up to now.
>>asBinary() returns a byte array, so this should be transferred more
>>efficiently.
>
> The driver receives all data as text. To be able to receive binary data
> we must support binary data for all types because we do not know what type
> we will be getting back from the SELECT before it is run. Getting that
> information would require an extra network round trip so we don't want to
> do that. Doing all binary transfer is on the 8.1 todo list, but I've yet
> to really get started on it.
Oh, I thought that binary transmit was implemented in 8.0 :-(
Then, currently, the better way to receive geometries may be to use the
new canonical text rep for geometries (hex-encoded extended WKB) which
is only two times as large compared to pure binary rep.
As there are at least plans to use caching of prepared statements, it
also should be possible to cache this information together with the
prepared statement. This would reduce the number of roundtrips.
Markus
--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com
Attachments:
signature.asc (application/pgp-signature, 255B) download
view thread (7+ messages) latest in thread
Message-ID: <421DA0C2.10407@logi-track.com> Permalink: ../421DA0C2.10407@logi-track.com/ Also on: postgresql.org/message-id/421DA0C2.10407@logi-track.com ·
reply
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: schabios@logi-track.com, books@ejurka.com, postgis-devel@postgis.refractions.net, dblasby@openplans.org Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead In-Reply-To: <421DA0C2.10407@logi-track.com> References: <1109097544.421b7c482a529@webmail.limegroup.com> <421C99E1.4070107@logi-track.com> <Pine.BSO.4.56.0502231405360.11888@leary.csoft.net> <421DA0C2.10407@logi-track.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