Re: performance with triggers depends on table size?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: performance with triggers depends on table size?
Дата
Msg-id 19147.1029190865@sss.pgh.pa.us
обсуждение исходный текст
Ответ на performance with triggers depends on table size?  (Christian Mock <cm@coretec.at>)
Ответы Re: performance with triggers depends on table size?  (Christian Mock <cm@coretec.at>)
Re: performance with triggers depends on table size?  (Christian Mock <cm@coretec.at>)
Список pgsql-general
Christian Mock <cm@coretec.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Peter Darley"
Дата:
Сообщение: Vacuum problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Vacuum problem