Re: bug report: slow getColumnTypeName

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: bug report: slow getColumnTypeName
Дата
Msg-id alpine.BSO.2.00.1210052044030.25941@leary.csoft.net
обсуждение исходный текст
Ответ на bug report: slow getColumnTypeName  (Eyal Wilde <eyal@impactsoft.co.il>)
Список pgsql-jdbc

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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver