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 808869DC878 for ; Wed, 8 Mar 2006 11:01:47 -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 20944-02 for ; Wed, 8 Mar 2006 11:01:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id BC4929DC836 for ; Wed, 8 Mar 2006 11:01:44 -0400 (AST) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.171]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FH0Ac-0001Kt-Oq; Thu, 09 Mar 2006 04:01:46 +1300 Message-ID: <440EF1DC.9000702@opencloud.com> Date: Thu, 09 Mar 2006 00:01:48 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thomas Dudziak CC: pgsql-jdbc@postgresql.org Subject: Re: Performance problem with timestamps in result sets References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> In-Reply-To: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/36 X-Sequence-Number: 14817 Thomas Dudziak wrote: > In short, whenever the ResultSet contains a timestamp value, the JDBC > driver takes nearly one second to extract it > -> AbstractJdbc2ResultSet.getTimestamp(int) : 7130ms | 8190 calls > Now my question is, is there something to make this faster ? Nearly > 1sec for a ResulSet.getTimestamp call is too much for us. Your profiling numbers show about 0.9 milliseconds per call, not 1 second per call, if I am reading them right? That's still slower than I would have expected, though. I did no profiling at the time I rewrote the timestamp stuff to actually work correctly. Perhaps you'd like to profile in more detail and submit some patches? -O