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 E81DD9DC9C9 for ; Wed, 8 Mar 2006 11:28:58 -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 21196-10 for ; Wed, 8 Mar 2006 11:29:03 -0400 (AST) X-Greylist: delayed 00:20:48.893323 by SQLgrey- Received: from pne-smtpout1-sn1.fre.skanova.net (pne-smtpout1-sn1.fre.skanova.net [81.228.11.98]) by postgresql.org (Postfix) with ESMTP id 85B269DC89D for ; Wed, 8 Mar 2006 11:28:56 -0400 (AST) Received: from w128mtec (62.20.156.194) by pne-smtpout1-sn1.fre.skanova.net (7.2.070) id 43FF233D002BAF68; Wed, 8 Mar 2006 16:08:11 +0100 Message-ID: <006201c642c2$1f17a610$c29c143e@w128mtec> From: "mikael-aronsson" To: "Thomas Dudziak" Cc: References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> <060a01c642bf$b3060220$9001a8c0@zaphod> <224f32340603080657m35f7c35do34a2c6dc3f1b5f0@mail.gmail.com> Subject: Re: Performance problem with timestamps in result sets Date: Wed, 8 Mar 2006 16:08:13 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 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/40 X-Sequence-Number: 14821 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. Mikael ----- Original Message ----- From: "Thomas Dudziak" To: "Michael Paesold" Cc: Sent: Wednesday, March 08, 2006 3:57 PM Subject: Re: [JDBC] Performance problem with timestamps in result sets On 3/8/06, Michael Paesold wrote: > This should be 1 ms per getTimestamp call, shouldn't it? The time is the > aggregate time for ~8000 calls. That is still rather slow, yeah, but it is > so with profiling. Yep, but as I said, the others are much faster. E.g. getString takes 140ms for 5460 calls, and getInt 570ms for 10920 calls, so its probably not so much the profiler. Also, I was merely asking whether there is something that could be done to bring getTimestamp at least in the same region. cheers, Tom ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster