Re: Performance problem with timestamps in result sets - Mailing list pgsql-jdbc

From mikael-aronsson
Subject Re: Performance problem with timestamps in result sets
Date
Msg-id 006201c642c2$1f17a610$c29c143e@w128mtec
Whole thread Raw
In response to Performance problem with timestamps in result sets  ("Thomas Dudziak" <tomdzk@gmail.com>)
Responses Re: Performance problem with timestamps in result sets
Re: Performance problem with timestamps in result sets
List pgsql-jdbc
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" <tomdzk@gmail.com>
To: "Michael Paesold" <mpaesold@gmx.at>
Cc: <pgsql-jdbc@postgresql.org>
Sent: Wednesday, March 08, 2006 3:57 PM
Subject: Re: [JDBC] Performance problem with timestamps in result sets


On 3/8/06, Michael Paesold <mpaesold@gmx.at> 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


pgsql-jdbc by date:

Previous
From: "Thomas Dudziak"
Date:
Subject: Re: Performance problem with timestamps in result sets
Next
From: David Goodenough
Date:
Subject: Problem with background thread in Tomcat 5.5.9