Re: Pre-sorting COPY FROM input

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Pre-sorting COPY FROM input
Дата
Msg-id 514367F2.1080402@vmware.com
обсуждение исходный текст
Ответ на Pre-sorting COPY FROM input  (Florian Weimer <fw@deneb.enyo.de>)
Список pgsql-performance
On 15.03.2013 19:31, Florian Weimer wrote:
> Does it make sense to pre-sort COPY FROM input to produce long runs of
> increasing values of an indexed column, or does PostgreSQL perform
> this optimization on its own?

PostgreSQL doesn't do that sort of an optimization itself, so yeah, if
the random I/O of index updates is a problem, pre-sorting the input
should help.

- Heikki


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

Предыдущее
От: Rick Otten
Дата:
Сообщение: Re: New server setup
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: New server setup