Re: inserts slow on table of about 600K recs - Mailing list pgsql-admin

From Tom Lane
Subject Re: inserts slow on table of about 600K recs
Date
Msg-id 18515.1047617715@sss.pgh.pa.us
Whole thread Raw
In response to inserts slow on table of about 600K recs  (Joe Hudson <jlhudson@www.dminfo.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: Re: Table Sizes
Next
From: "Partho Bhowmick"
Date:
Subject: Regular expressions in PostgreSQL