Re: Good performance?

Поиск
Список
Период
Сортировка
От Rafal Kedziorski
Тема Re: Good performance?
Дата
Msg-id 5.2.0.9.0.20030217012205.01c43398@mail.polonium.de
обсуждение исходный текст
Ответ на Re: Good performance?  ("John Cavacas" <oogly@rogers.com>)
Список pgsql-jdbc
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


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "John Cavacas"
Дата:
Сообщение: Re: Good performance?
Следующее
От: Barry Lind
Дата:
Сообщение: Re: new driver questions