Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: slow jdbc postgres connection



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




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group