X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A35FE9DC836 for ; Wed, 8 Mar 2006 12:25:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31355-08 for ; Wed, 8 Mar 2006 12:25:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noao.edu (noao.edu [140.252.1.54]) by postgresql.org (Postfix) with ESMTP id 5C7979DC815 for ; Wed, 8 Mar 2006 12:25:45 -0400 (AST) X-TFF-CGPSA-Version: 1.4f1 X-TFF-CGPSA-Filter: Scanned Received: from weaver.tuc.noao.edu ([140.252.14.8] verified) by noao.edu (CommuniGate Pro SMTP 5.0.8) with ESMTPS id 24329016; Wed, 08 Mar 2006 09:25:44 -0700 Received: from weaver.tuc.noao.edu (localhost.localdomain [127.0.0.1]) by weaver.tuc.noao.edu (8.13.1/8.13.1) with ESMTP id k28GPiPi029623; Wed, 8 Mar 2006 09:25:44 -0700 Received: (from swampler@localhost) by weaver.tuc.noao.edu (8.13.1/8.13.1/Submit) id k28GPhqw029622; Wed, 8 Mar 2006 09:25:43 -0700 Date: Wed, 8 Mar 2006 09:25:43 -0700 From: Steve Wampler To: mikael-aronsson Cc: Thomas Dudziak , pgsql-jdbc@postgresql.org Subject: Re: Performance problem with timestamps in result sets Message-ID: <20060308162543.GA29522@weaver.tuc.noao.edu> Reply-To: swampler@noao.edu References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> <060a01c642bf$b3060220$9001a8c0@zaphod> <224f32340603080657m35f7c35do34a2c6dc3f1b5f0@mail.gmail.com> <006201c642c2$1f17a610$c29c143e@w128mtec> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006201c642c2$1f17a610$c29c143e@w128mtec> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/42 X-Sequence-Number: 14823 On Wed, Mar 08, 2006 at 04:08:13PM +0100, mikael-aronsson wrote: > I do not think there is much more to do, the timestamp is just a 64 bit > integer and you say an int takes 570ms/10920 calls and a timestamp takes > 7130ms/8190 calls, this is about twice as much to get twice as much data. Eh? 7130 / 8190.0 = 0.8705738705738706 570 /10920.0 = 0.0521978021978022 Which is >16X difference. While may be as much as can be done, it's more than twice as much to get twice the data. -- Steve Wampler -- swampler@noao.edu The gods that smiled on your birth are now laughing out loud.