pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jlhudson@www.dminfo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: inserts slow on table of about 600K recs
Date: Thu, 13 Mar 2003 23:55:15 -0500
Message-ID: <18515.1047617715@sss.pgh.pa.us> (raw)
In-Reply-To: <3E71513A.826C8E8C@dminfo.com>
References: <3E71513A.826C8E8C@dminfo.com>

Joe Hudson <jlhudson@www.dminfo.com> writes:
>    Running v7.2.2 on Linux RH 7.2  with 256Mb RAM:  inserts "apparently"
> slowed down to taking a couple of seconds when the table reached around
> 600K recs / 190 Mb.

Inserting per se should be a constant-time operation, independent of the
size of the table.  The index updates are not constant-time, but I can't
see any reason for their performance to suddenly fall off a cliff
either.  What I'm wondering about is triggers --- in particular, do you
have any foreign keys in this table?  Checking the foreign references
could be where the problem is.

			regards, tom lane



view thread (3+ messages)

Message-ID: <18515.1047617715@sss.pgh.pa.us>
Permalink:  ../18515.1047617715@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18515.1047617715@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 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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jlhudson@www.dminfo.com
  Subject: Re: inserts slow on table of about 600K recs
  In-Reply-To: <18515.1047617715@sss.pgh.pa.us>
  References: <3E71513A.826C8E8C@dminfo.com> <18515.1047617715@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