From: Oliver Jowett <oliver@opencloud.com>
To: Thomas Dudziak <tomdzk@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Performance problem with timestamps in result sets
Date: Thu, 09 Mar 2006 00:01:48 +0900
Message-ID: <440EF1DC.9000702@opencloud.com> (raw)
In-Reply-To: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com>
References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, tomdzk@gmail.com
Subject: Re: Performance problem with timestamps in result sets
In-Reply-To: <440EF1DC.9000702@opencloud.com>
References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> <440EF1DC.9000702@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox