X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 78ABF528BD for ; Wed, 20 Jul 2005 11:09:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79088-08 for ; Wed, 20 Jul 2005 14:09:16 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id BD96A528A8 for ; Wed, 20 Jul 2005 11:09:12 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Wed, 20 Jul 2005 09:09:16 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Date: Wed, 20 Jul 2005 09:09:06 -0500 From: "Kevin Grittner" To: Subject: Re: Streaming ResultSet Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/175 X-Sequence-Number: 13323 I'm considering using PostgreSQL in an environment where there is a middle tier framework running the queries, which has no way of knowing whether the query it is about to run will return one row or millions of rows. When it comes to returning millions of rows, I don't much care about 20us. Some of the one row queries run in as little as 265us (and I'm thinking of submitting changes which would bring that down), so 20us might creep into the range of significance. The test which showed a 20us difference were running across the LAN, while the production middle tier will be running on the same box as the database; so, if much of the 20us is in network latency, it becomes much less significant. -Kevin >>> Oliver Jowett 07/19/05 6:38 PM >>> You are considering using resultset streaming in a query that takes only ~600us (from your 3% number)? How big is that resultset anyway?