Re: loading data, creating indexes, clustering, vacuum...

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: loading data, creating indexes, clustering, vacuum...
Дата
Msg-id 200612071452.11215@hal.medialogik.com
обсуждение исходный текст
Ответ на loading data, creating indexes, clustering, vacuum...  ("Angva" <angvaw@gmail.com>)
Ответы Re: loading data, creating indexes, clustering, vacuum...  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
On Thursday 07 December 2006 08:38, "Angva" <angvaw@gmail.com> wrote:
> three commands. For instance I have a hunch that creating the indexes
> first (as I do now) could slow down the clustering - perhaps the row
> locations in the indexes all have to be updated as the cluster command
> shifts their locations? And perhaps vacuuming should be done before
> clustering so that dead tuples aren't "in the way"?

clustering also removes the dead tuples.

I would just:

- create one index, the one to be clustered
- cluster the table
- create the remaining indexes

--
Eat right. Exercise regularly. Die anyway.


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

Предыдущее
От: Tony Caduto
Дата:
Сообщение: Re: The relative stability of different procedural languages
Следующее
От: Russell Smith
Дата:
Сообщение: Re: VACUUM and transactions in different databases