pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: Arjen van der Meijden <acmmailing@tweakers.net>
Cc: Michael Stone <mstone+postgres@mathom.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to determine cause of performance problem?
Date: Fri, 23 Sep 2005 10:33:06 -0400
Message-ID: <3711.1127485986@sss.pgh.pa.us> (raw)
In-Reply-To: <1127482558.3524.23.camel@Panoramix>
References: <1127458167.2475.105.camel@Panoramix>
	<20050923095517.GW14918@mathom.us>
	<1127470875.3524.17.camel@Panoramix>
	<20050923110500.GX14918@mathom.us>
	<4333E4DB.4020206@tweakers.net>
	<1127482558.3524.23.camel@Panoramix>

Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl> writes:
> I will test this a for perfomance improvement, but still, I wonder if ~
> 100 inserts/second is a reasonable performance for my software/hardware
> combination.

Is the client code running on the same machine as the database server?
If not, what's the network delay and latency between them?

The major problem you're going to have here is at least one network
round trip per row inserted --- possibly more, if the jdbc driver is
doing "helpful" stuff behind your back like starting/committing
transactions.

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <3711.1127485986@sss.pgh.pa.us>
Permalink:  ../3711.1127485986@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3711.1127485986@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, J.Kraaijeveld@Askesis.nl, acmmailing@tweakers.net, mstone+postgres@mathom.us
  Subject: Re: How to determine cause of performance problem?
  In-Reply-To: <3711.1127485986@sss.pgh.pa.us>

* 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