On Fri, 2 Mar 2007, Alex Malone wrote:
> Here is a small change that improved the performance of setting a
> timestamp field on a prepared statement from 0.513ms to 0.083ms in our
> tests. Measured using JProfiler for 50,000 iterations. Essentially it
> is switching to use SimpleDateFormat for toString(). I believe this
> code is from the 8.1 408 driver.
>
> pgdtf.format(cal.getTime(), sbuf, FIRSTPOS);
Doesn't this leave out the nanoseconds? The Calendar won't have anything
below milliseconds.
Kris Jurka