Re: Insert performance slows down in large batch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Insert performance slows down in large batch
Дата
Msg-id 15960.1133464754@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Insert performance slows down in large batch  ("Jeremy Haile" <jhaile@fastmail.fm>)
Список pgsql-performance
"Jeremy Haile" <jhaile@fastmail.fm> writes:
> 1) Why does the performance degrade as the table sizes grow?  Shouldn't
> the insert performance remain fairly constant if there are no indexes or
> constraints?

Yeah, insert really should be a constant-time operation if there's no
add-on operations like index updates or FK checks.  Can you get more
information about where the time is going with gprof or oprofile?
(I'm not sure if oprofile is available for RHEL4, but it is in Fedora 4
so maybe RHEL4 has it too.)

If you're not comfortable with performance measurement tools, perhaps
you could crank up a test case program that just generates dummy data
and inserts it in the same way as your real application does.  If you
can confirm a slowdown in a test case that other people can look at,
we'd be happy to look into the reason for it.

            regards, tom lane

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

Предыдущее
От: "Gavin M. Roy"
Дата:
Сообщение: Re: 15,000 tables
Следующее
От: Michael Riess
Дата:
Сообщение: Re: 15,000 tables