From: John R Pierce <pierce@hogranch.com>
To: Bob Damato <bob_damato@coxtarget.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Overhead
Date: Tue, 01 Aug 2006 17:40:14 -0700
Message-ID: <44CFF46E.4000803@hogranch.com> (raw)
In-Reply-To: <3C0EE29939948549A093F180634257028F2895@ex-1.coxtarget.com>
References: <3C0EE29939948549A093F180634257028F2895@ex-1.coxtarget.com>
> When I run this same code against a mySQL or Sybase database, I get
> 1ms execution time. Am I missing some bit of tuning that I can do with
> the database or the JDBC driver to eliminate that 50+ms of latency?
>
What do you get when you execute (from a shell prompt, assuming you're
on a unix type system),
$ time psql -c "SELECT 1;" dbname username
unluckily, this won't work if password authentication is required,
unless you setup a ~/.pgpass
I get about 12mS on a several year old x86 linux server
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: pierce@hogranch.com, bob_damato@coxtarget.com
Subject: Re: JDBC Overhead
In-Reply-To: <44CFF46E.4000803@hogranch.com>
References: <3C0EE29939948549A093F180634257028F2895@ex-1.coxtarget.com> <44CFF46E.4000803@hogranch.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