pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Mikko Tiihonen <Mikko.Tiihonen@nitorcreations.com>
Cc: Craig Ringer <ringerc@ringerc.id.au>
Cc: Sérgio Saquetim <sergiosaquetim@gmail.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Cc: Rafael dos Santos Silva <xfalcox@gmail.com>
Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver
Date: Thu, 18 Oct 2012 21:19:47 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1210182117410.30580@leary.csoft.net> (raw)
In-Reply-To: <51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local>
References: <CACLs3uCrjXaY94ivGQgoXDfe-2dwxwsHdPXrA3ey+eL7TPQEJA@mail.gmail.com>
	<d2b756c0-cb16-4a4b-a893-33042a2d28a9@googlegroups.com>
	<507FC5EA.6070905@ringerc.id.au>
	<51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local>



On Thu, 18 Oct 2012, 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.
> 

Is there any functionality that we need that is provided by using 
InetSocketAddress or is it just a convenient object to pass around host 
and port together?  The simplest option to me seems to be reverting to 
passing simple strings/ints around (possibly in some kind of our own 
container).

Kris Jurka




view thread (25+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1210182117410.30580@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1210182117410.30580@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1210182117410.30580@leary.csoft.net

 · 

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: books@ejurka.com, Mikko.Tiihonen@nitorcreations.com, ringerc@ringerc.id.au, sergiosaquetim@gmail.com, xfalcox@gmail.com
  Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver
  In-Reply-To: <alpine.BSO.2.00.1210182117410.30580@leary.csoft.net>
  References: <CACLs3uCrjXaY94ivGQgoXDfe-2dwxwsHdPXrA3ey+eL7TPQEJA@mail.gmail.com> <d2b756c0-cb16-4a4b-a893-33042a2d28a9@googlegroups.com> <507FC5EA.6070905@ringerc.id.au> <51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local> <alpine.BSO.2.00.1210182117410.30580@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