From: Kris Jurka <books@ejurka.com>
To: Eyal Wilde <eyal@impactsoft.co.il>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bug report: slow getColumnTypeName
Date: Fri, 5 Oct 2012 20:47:57 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1210052044030.25941@leary.csoft.net> (raw)
In-Reply-To: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com>
References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com>
On Fri, 5 Oct 2012, Eyal Wilde wrote:
>
> ResultSetMetaData __md = __rs.getMetaData(); //this
> is fine
> String __sf1name = __md.getColumnName(1); //this
> is fine
> int __if1type = __md.getColumnType(1);
> //this is fine
> String __sf1type = __md.getColumnTypeName(1); //this is
> SLOW!! ~15msec
>
getColumnTypeName requires going back to the server to fetch the
additional information about the source table that is not needed for
just getColumnType. So naturally that takes longer.
Kris Jurka
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: books@ejurka.com, eyal@impactsoft.co.il
Subject: Re: bug report: slow getColumnTypeName
In-Reply-To: <alpine.BSO.2.00.1210052044030.25941@leary.csoft.net>
References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com> <alpine.BSO.2.00.1210052044030.25941@leary.csoft.net>
* 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