pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rafal Kedziorski <rafcio@polonium.de>
To: pgsql-jdbc@postgresql.org
Subject: Re: Good performance?
Date: Mon, 17 Feb 2003 01:23:45 +0100
Message-ID: <5.2.0.9.0.20030217012205.01c43398@mail.polonium.de> (raw)
In-Reply-To: <000e01c2d612$66b29450$6401a8c0@spook>
References: <5.2.0.9.0.20030216232710.01b40810@mail.polonium.de>

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@postgresql.org so that your
>message can get through to the mailing list cleanly




view thread (11+ messages)  latest in thread

Message-ID: <5.2.0.9.0.20030217012205.01c43398@mail.polonium.de>
Permalink:  ../5.2.0.9.0.20030217012205.01c43398@mail.polonium.de/
Also on:    postgresql.org/message-id/5.2.0.9.0.20030217012205.01c43398@mail.polonium.de

 · 

reply

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-performance@postgresql.org
  Cc: rafcio@polonium.de, pgsql-jdbc@postgresql.org
  Subject: Re: Good performance?
  In-Reply-To: <5.2.0.9.0.20030217012205.01c43398@mail.polonium.de>
  References: <5.2.0.9.0.20030216232710.01b40810@mail.polonium.de> <5.2.0.9.0.20030217012205.01c43398@mail.polonium.de>

* 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