From: David Wilson <david.t.wilson@gmail.com>
To: Brian Cox <brian.cox@ca.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: multiple threads inserting into the same table
Date: Mon, 23 Mar 2009 15:49:34 -0400
Message-ID: <e7f9235d0903231249x3dc20111yb1e280c28abf761a@mail.gmail.com> (raw)
In-Reply-To: <49C7E42B.9070002@ca.com>
References: <49C7E42B.9070002@ca.com>
On Mon, Mar 23, 2009 at 3:34 PM, Brian Cox <brian.cox@ca.com> wrote:
> The application log shows that 99652 rows are being inserted into relation
> ts_stats_transet_user_daily. 5 threads are doing the inserts. The schema is
> lengthy, but it has a synthetic primary key (ts_id int8 not null) and the
> following constraints:
How many indexes are there on ts_stats_transset_user_daily?
Are these rows being inserted in individual insert statements, or are
they batched in some fashion?
What's the disk/cpu activity on your system look like?
--
- David T. Wilson
david.t.wilson@gmail.com
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: david.t.wilson@gmail.com, brian.cox@ca.com
Subject: Re: multiple threads inserting into the same table
In-Reply-To: <e7f9235d0903231249x3dc20111yb1e280c28abf761a@mail.gmail.com>
References: <49C7E42B.9070002@ca.com> <e7f9235d0903231249x3dc20111yb1e280c28abf761a@mail.gmail.com>
* 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