From: | Rafal Kedziorski <rafcio(at)polonium(dot)de> |
---|---|
To: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Good performance? |
Date: | 2003-02-17 00:23:45 |
Message-ID: | 5.2.0.9.0.20030217012205.01c43398@mail.polonium.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-performance |
At 18:23 16.02.2003 -0500, John Cavacas wrote:
> > ....
> > pstmt.setLong(1, getUniquelongID());
> >....
>
>What is getUniquelongID()? Can you post the code for that? I would
>suspect that might be your problem.
here is the code.
private final static long getUniquelongID() {
return (System.currentTimeMillis() * 1000 + (long) (100000 *
Math.random()));
}
but this routine is very fast. for computing 100.000 values she need 6-7
seconds.
>Your results point to something being wrong somewhere. Just yesterday I
>was doing some benchmarking of my own, and using code similar to yours I
>was inserting 10000 records in about 23 seconds.
>
>john
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Yan Yan Che | 2003-02-17 04:21:20 | PrimaryKeyExists Error |
Previous Message | John Cavacas | 2003-02-16 23:23:23 | Re: Good performance? |
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2003-02-17 04:45:01 | Re: Good performance? |
Previous Message | John Cavacas | 2003-02-16 23:23:23 | Re: Good performance? |