Re: slow jdbc postgres connection

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Stefan Zweig <stefanzweig1881(at)web(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: slow jdbc postgres connection
Date: 2007-04-26 11:19:38
Message-ID: 46308ACA.4030505@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2007-04-26 12:19:52 Re: slow jdbc postgres connection
Previous Message Heikki Linnakangas 2007-04-26 10:05:41 Re: slow jdbc postgres connection