Re: Insert performance with composite index

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: Insert performance with composite index
Дата
Msg-id AANLkTinv8-YmUA+QJOu83uuT=Mw9pxbTKZqreGx-_3y2@mail.gmail.com
обсуждение исходный текст
Ответ на Insert performance with composite index  (Divakar Singh <dpsmails@yahoo.com>)
Список pgsql-performance
On Mon, Nov 1, 2010 at 14:49, Divakar Singh <dpsmails@yahoo.com> wrote:
> I am trying to tune my libpq program for insert performance.
> When I tried inserting 1M rows into a table with a Primary Key, it took
> almost 62 seconds.
> After adding a composite index of 2 columns, the performance degrades to 125
> seconds.

This sounds a lot like the bottleneck I was hitting. What Linux kernel
version are you running?

If it's 2.6.33 or later, see:
http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#wal_sync_method_wal_buffers
http://archives.postgresql.org/pgsql-performance/2010-10/msg00602.php

Regards,
Marti

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

Предыдущее
От: Divakar Singh
Дата:
Сообщение: Re: Insert performance with composite index
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: Insert performance with composite index