X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A7EA99FB1B9 for ; Tue, 1 Aug 2006 21:40:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 66132-03 for ; Tue, 1 Aug 2006 21:40:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from hogranch.com (hogranch.com [66.117.128.240]) by postgresql.org (Postfix) with ESMTP id 43DF19FB1C3 for ; Tue, 1 Aug 2006 21:40:27 -0300 (ADT) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id k720eJ520654; Tue, 1 Aug 2006 17:40:20 -0700 Message-ID: <44CFF46E.4000803@hogranch.com> Date: Tue, 01 Aug 2006 17:40:14 -0700 From: John R Pierce User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Damato CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC Overhead References: <3C0EE29939948549A093F180634257028F2895@ex-1.coxtarget.com> In-Reply-To: <3C0EE29939948549A093F180634257028F2895@ex-1.coxtarget.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/3 X-Sequence-Number: 15530 > 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