Re: performance with triggers depends on table size?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christian Mock <cm(at)coretec(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: performance with triggers depends on table size?
Date: 2002-08-12 22:21:05
Message-ID: 19147.1029190865@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christian Mock <cm(at)coretec(dot)at> writes:
> I've got two identical tables, "input" and "output"; input is filled
> by an importing process, the data is processed and partially deleted,
> and the rest is copied to "output" by means of
> INSERT INTO output SELECT * FROM input

> What I noticed is that with triggers on the output table which update
> a statistics table, the time needed for that copying is more or less
> linearily dependant on the number of rows in the output table.

Perhaps what it's actually dependent on is the size of the stats table?
Do you have indexes on the stats table, and if so are they being used
by the trigger's queries?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-08-12 23:30:53 Re: Vacuum problem
Previous Message Peter Darley 2002-08-12 22:01:25 Vacuum problem