From: Craig Ringer <ringerc@ringerc.id.au>
To: Eyal Wilde <eyal@impactsoft.co.il>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bug report: slow getColumnTypeName
Date: Fri, 05 Oct 2012 13:21:11 +0800
Message-ID: <506E6E47.7000603@ringerc.id.au> (raw)
In-Reply-To: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com>
References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com>
On 10/05/2012 07:07 AM, 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
Can you wrap that up into a test case (SQL schema and Java code) that's
self contained and runnable?
--
Craig Ringer
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: ringerc@ringerc.id.au, eyal@impactsoft.co.il
Subject: Re: bug report: slow getColumnTypeName
In-Reply-To: <506E6E47.7000603@ringerc.id.au>
References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com> <506E6E47.7000603@ringerc.id.au>
* 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