X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6FA85531C7 for ; Thu, 24 Feb 2005 09:39:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58008-02 for ; Thu, 24 Feb 2005 09:39:12 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id E8A0055443 for ; Thu, 24 Feb 2005 09:39:11 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (J1119.j.pppool.de [85.74.17.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id 0BD5B303AE; Thu, 24 Feb 2005 10:39:19 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with ESMTP id 14B5AAB2E5; Thu, 24 Feb 2005 10:39:15 +0100 (CET) Message-ID: <421DA0C2.10407@logi-track.com> Date: Thu, 24 Feb 2005 10:39:14 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: PostGIS Development Discussion , "pgsql-jdbc@postgresql.org" , David Blasby Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead References: <1109097544.421b7c482a529@webmail.limegroup.com> <421C99E1.4070107@logi-track.com> In-Reply-To: X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigEA292D8F1EB31E6208EB2E80" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.052 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/182 X-Sequence-Number: 12362 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEA292D8F1EB31E6208EB2E80 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 dat= a=20 > we must support binary data for all types because we do not know what t= ype=20 > we will be getting back from the SELECT before it is run. Getting that= =20 > information would require an extra network round trip so we don't want = to=20 > do that. Doing all binary transfer is on the 8.1 todo list, but I've y= et=20 > 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 --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com --------------enigEA292D8F1EB31E6208EB2E80 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCHaDCOVWsnapT9i0RAzFzAJ9hMOt9JHym5Tk0JFymjVf26OU+AQCg7Moa Cycc/cSrAA3a7LNtvn132sM= =otag -----END PGP SIGNATURE----- --------------enigEA292D8F1EB31E6208EB2E80--