Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 1D3319FB88F for ; Thu, 26 Apr 2007 08:19:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 45556-05 for ; Thu, 26 Apr 2007 08:19:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 591469FB8F1 for ; Thu, 26 Apr 2007 08:19:33 -0300 (ADT) Received: from 222-154-134-238.jetstream.xtra.co.nz ([222.154.134.238] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Hh20Z-0006U7-Ce; Thu, 26 Apr 2007 23:19:31 +1200 Message-ID: <46308ACA.4030505@opencloud.com> Date: Thu, 26 Apr 2007 23:19:38 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Stefan Zweig CC: pgsql-jdbc@postgresql.org Subject: Re: slow jdbc postgres connection References: <58958572@web.de> In-Reply-To: <58958572@web.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/123 X-Sequence-Number: 16972 Stefan Zweig wrote: > long start=System.currentTimeMillis();//start time measurement > > pgresultSet = pgstatement.executeQuery(pgquery); > > long time=System.currentTimeMillis()-start;//end time measurement > > //time =4756ms And if you run the query a second time on the same connection (or even on a completely new connection in the same JVM), what's the time for that? I'd guess you're measuring mostly classloading costs. -O