Re: very very slow inserts into very large table

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: very very slow inserts into very large table
Дата
Msg-id CAGTBQpbvbLk+jdtKFxKcVAQZoPx9pxgr+QK_37YJCw-cKuiHKQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: very very slow inserts into very large table  (Mark Thornton <mthornton@optrak.com>)
Ответы Re: very very slow inserts into very large table
Список pgsql-performance
On Mon, Jul 16, 2012 at 3:59 PM, Mark Thornton <mthornton@optrak.com> wrote:
> 4. The most efficient way for the database itself to do the updates would be
> to first insert all the data in the table, and then update each index in
> turn having first sorted the inserted keys in the appropriate order for that
> index.

Actually, it should create a temporary index btree and merge[0] them.
Only worth if there are really a lot of rows.

[0] http://www.ccs.neu.edu/home/bradrui/index_files/parareorg.pdf

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

Предыдущее
От: Mark Thornton
Дата:
Сообщение: Re: very very slow inserts into very large table
Следующее
От: Mark Thornton
Дата:
Сообщение: Re: very very slow inserts into very large table