pg.ddx.io  postgis-devel@lists.osgeo.org mailing list archive (PostGIS development)  
help / color / mirror / Atom feed
From: dblasby at openplans.org <dblasby@openplans.org>
Subject: [postgis-devel] JDBC & WKB - 400% overhead
Date: Wed, 23 Feb 2005 12:25:01 -0500
Message-ID: <1109179501.421cbc6d4bd9e@webmail.limegroup.com> (raw)

Markus,

>Maybe your postgresql driver only uses text transfer up to now.
>asBinary() returns a byte array, so this should be transferred more
>efficiently.

I'm using the JDBC3 build 310 drivers (latest from jdbc.postgresql.org).

>Can you try the following query:
>
>select 5::float8,asBinary('POINT(0 0)')::bytea
>
asBinary() already returns a bytea:

#\df asbinary
                     List of functions
 Schema |   Name   | Result data type | Argument data types
--------+----------+------------------+---------------------
 public | asbinary | bytea            | geometry
 public | asbinary | bytea            | geometry, text
(2 rows)

But, I tried your query and it, also, sends 84 bytes.

dave


----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/




view thread (10+ messages)  latest in thread

Message-ID: <1109179501.421cbc6d4bd9e@webmail.limegroup.com>
Permalink:  ../1109179501.421cbc6d4bd9e@webmail.limegroup.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: postgis-devel@lists.osgeo.org
  Cc: dblasby@openplans.org
  Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead
  In-Reply-To: <1109179501.421cbc6d4bd9e@webmail.limegroup.com>
  References: <1109179501.421cbc6d4bd9e@webmail.limegroup.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