pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John T. Dow <john@johntdow.com>
To: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: 9.0 Driver
Date: Sun, 08 Aug 2010 20:55:19 -0400
Message-ID: <201008090104.o7914iMR060897@web7.nidhog.com> (raw)
In-Reply-To: <4C5C44E3.10202@scharp.org>

There is, I believe, a problem with the JDBC driver in that it gives very poor performance doing a refreshRow. The problem is that the driver queries the server for every column in the resultset.

I implemented a quick and dirty fix by modifying the driver to (on demand) use the labels returned in the resultset.

This solution of course will fail if the original query used an alias for a column. Other than that, it seems to be a good solution.

Apparently I am the only one who uses refreshrow, because I reported the fact that it was slow in January (and there was a little discussion) but when in April I reported my crude solution there was no discussion.

John




view thread (7+ messages)  latest in thread

Message-ID: <201008090104.o7914iMR060897@web7.nidhog.com>
Permalink:  ../201008090104.o7914iMR060897@web7.nidhog.com/
Also on:    postgresql.org/message-id/201008090104.o7914iMR060897@web7.nidhog.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: john@johntdow.com
  Subject: Re: 9.0 Driver
  In-Reply-To: <201008090104.o7914iMR060897@web7.nidhog.com>
  References: <4C5C44E3.10202@scharp.org> <201008090104.o7914iMR060897@web7.nidhog.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