Re: slow jdbc postgres connection

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


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

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