Re: slow jdbc postgres connection

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: slow jdbc postgres connection
Дата
Msg-id 46307911.7030201@enterprisedb.com
обсуждение исходный текст
Ответ на slow jdbc postgres connection  (Stefan Zweig <stefanzweig1881@web.de>)
Ответы Re: slow jdbc postgres connection
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Stefan Zweig
Дата:
Сообщение: Re: slow jdbc postgres connection
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: slow jdbc postgres connection