Re: How to improve insert speed with index on text column

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How to improve insert speed with index on text column
Дата
Msg-id CAOR=d=2u2ytFJumtdHB+QirgKtRcPChqY8sjqtD-gMzWj8H=kA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to improve insert speed with index on text column  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-performance
On Tue, Jan 31, 2012 at 1:20 PM, Merlin Moncure <mmoncure@gmail.com> wrote:
> yeah -- postgresql.conf settings are not going to play a big role here unless:
> *) you defer index build to the end of the load, and do CREATE INDEX
> and crank maintenance_work_mem
> *) you are doing lots of transactions and relax your sync policy via
> synchronous_commit

checkpoint segments sometimes helps for loading large amounts of data.

> what's almost certainly happening here is that the text index is
> writing out a lot more data.  what's the average length of your key?

Yeah, the OP really needs to switch to hashes for the indexes.  And
like another poster mentioned, it's often faster to use a btree of
hashes than to use the built in hash index type.

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: How to improve insert speed with index on text column
Следующее
От: Robert Haas
Дата:
Сообщение: Re: How to remove a table statistics ?