pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark De Souza <mark@openobjects.com.au>
To: pgsql-jdbc@postgresql.org
Subject: ResultSetMetaData performance
Date: Sun, 18 Feb 2007 17:12:37 +1100
Message-ID: <000401c75323$cbe71bb0$5500a8c0@ronin> (raw)

Hi all,

I'm just wondering when the feature below will be implemented. Its pulled
from the todo list on the postgres jdbc website. 

"ResultSetMetaData calls that run queries are cached on a per column basis,
but it seems likely that they're going to be called for all columns, so try
to issue one query per ResultSet, not per column."

Currently frameworks like sun java creator and netbeans visual web pack make
heavy use of the metadata of queries. This usually is not a problem but in
the current implementation it means that if your query is returning 30
columns you are actually running 31 queries instead of 2. Suffix it to say
that this can bring your queries to a crawl.


Thanks in advance,
Mark De Souza




Message-ID: <000401c75323$cbe71bb0$5500a8c0@ronin>
Permalink:  ../000401c75323$cbe71bb0$5500a8c0@ronin/
Also on:    postgresql.org/message-id/000401c75323$cbe71bb0$5500a8c0@ronin

 · 

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: mark@openobjects.com.au
  Subject: Re: ResultSetMetaData performance
  In-Reply-To: <000401c75323$cbe71bb0$5500a8c0@ronin>
  References: <000401c75323$cbe71bb0$5500a8c0@ronin>

* 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