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
Дата
Msg-id CADK3HH+QvASPUKaSgiYCPqVzYFtoY+5HYBLjg0NgwazJK_CK2Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver  (Craig Ringer <ringerc@ringerc.id.au>)
Ответы Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver  (Craig Ringer <ringerc@ringerc.id.au>)
Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Список pgsql-jdbc
On Thu, Oct 18, 2012 at 8:18 AM, Craig Ringer <ringerc@ringerc.id.au> wrote:
> On 10/18/2012 05:17 PM, Mikko Tiihonen wrote:
>>
>> I think the DNS lookup is part of the JDBC failover connection patch that
>> I created.
>> I initially used a InetSocketAddress.getHostString() that does not do any
>> DNS lookups, but since that method was added in Java7 I had to revert to
>> getHostName() method which does.
>>
>> I see following options:
>
>
> 0) Revert the JDBC failover patch or require a connection parameter to
> enable it
>
>
>> 1) modify the code so that is uses reflection and if Java7 is detected it
>> will use the no-lookup method
>
>
> Gah! no! Not only will this not work in most SecurityManager contexts, but
> it's slow and horrid.

Surely there must be a way to detect that you are on Java7 without reflection ?


Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


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

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