From: Oliver Jowett <oliver@opencloud.com>
To: Stefan Zweig <stefanzweig1881@web.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: slow jdbc postgres connection
Date: Thu, 26 Apr 2007 23:19:38 +1200
Message-ID: <46308ACA.4030505@opencloud.com> (raw)
In-Reply-To: <58958572@web.de>
References: <58958572@web.de>
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
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: oliver@opencloud.com, stefanzweig1881@web.de
Subject: Re: slow jdbc postgres connection
In-Reply-To: <46308ACA.4030505@opencloud.com>
References: <58958572@web.de> <46308ACA.4030505@opencloud.com>
* 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