pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Stefan Zweig <stefanzweig1881@web.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: slow jdbc postgres connection
Date: Thu, 26 Apr 2007 11:04:01 +0100
Message-ID: <46307911.7030201@enterprisedb.com> (raw)
In-Reply-To: <58958572@web.de>
References: <58958572@web.de>

Stefan Zweig wrote:
> when i execute the following query via pgAdminIII i get a result within 31ms
> 
> Select version()
> result: PostgreSQL 8.1
> 
> if try to execute the same query using the jdbc-interface from a java-application the same query needs horrible 4756ms.
> my jdbc driver is  8.1-409 JDBC 3
> my postgres version is 8.1.8
> my JRE-Version: 1.5.0_07

Strange. Are you sure the time is spent on executing the query, and not 
on acquiring the connection? What kind of an application is it? There's 
no application server or framework involved? Would you please add 
loglevel=1 to the URL, and post the output? Maybe that will give a clue.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (7+ messages)  latest in thread

Message-ID: <46307911.7030201@enterprisedb.com>
Permalink:  ../46307911.7030201@enterprisedb.com/
Also on:    postgresql.org/message-id/46307911.7030201@enterprisedb.com

 · 

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: heikki@enterprisedb.com, stefanzweig1881@web.de
  Subject: Re: slow jdbc postgres connection
  In-Reply-To: <46307911.7030201@enterprisedb.com>
  References: <58958572@web.de> <46307911.7030201@enterprisedb.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