Re: Insert performance with composite index - Mailing list pgsql-performance

From Andres Freund
Subject Re: Insert performance with composite index
Date
Msg-id 201011011503.51821.andres@anarazel.de
Whole thread Raw
In response to Insert performance with composite index  (Divakar Singh <dpsmails@yahoo.com>)
List pgsql-performance
Hi,

On Monday 01 November 2010 13:49:14 Divakar Singh wrote:
> 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.
> I am using COPY to insert all data in 1 transaction.
Without seeing your config its hard to suggest anything here. Did you do basic
tuning of your pg installation?

wal_buffers, shared_buffers, checkpoint_segments, maintenance_work_mem are
likely most relevant for that specific case.

Andres

pgsql-performance by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: Insert performance with composite index
Next
From: Andres Freund
Date:
Subject: Re: Insert performance with composite index