Re: Delete large amount of records and INSERT (with indexes)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Delete large amount of records and INSERT (with indexes)
Дата
Msg-id 200304151447.h3FEl3p09572@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Delete large amount of records and INSERT (with indexes) goes VERY slow  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
Alvaro Herrera wrote:
> On Wed, Apr 09, 2003 at 12:59:01PM -0400, Tom Lane wrote:
> > Peter Nixon <listuser@peternixon.net> writes:
> >
> > > I then reran my import script and found that I was getting approximately 1
> > > INSERT every 30 secconds!!! although SELECTS were working relatively
> > > quickly.
> >
> > I think your mistake was to do VACUUM ANALYZE while the table was empty.
> > That led the planner to generate plans suitable for a very small table
> > --- seqscans instead of indexscans, for example.
>
> But he _is_ getting good performance for SELECT, so the plans are not
> that bad.  Only insertion is slow.  Can this be related to the btree
> index bloating issue you fixed on january?

It is my understanding that we only allowed indexes to reuse space after
VACUUM, not shrink the index size during VACUUM FULL, so the index could
still be huge.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


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

Предыдущее
От: "Johnson, Shaunn"
Дата:
Сообщение: import fixed width files into PostgreSQL
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: Appending to an array