> ....
> pstmt.setLong(1, getUniquelongID());
>....
What is getUniquelongID()? Can you post the code for that? I would
suspect that might be your problem.
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