pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Divakar Singh <dpsmails@yahoo.com>
To: Marti Raudsepp <marti@juffo.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Insert performance with composite index
Date: Mon, 1 Nov 2010 05:56:13 -0700 (PDT)
Message-ID: <235610.98703.qm@web65413.mail.ac4.yahoo.com> (raw)
In-Reply-To: <AANLkTinv8-YmUA+QJOu83uuT=Mw9pxbTKZqreGx-_3y2@mail.gmail.com>
References: <293254.80548.qm@web65413.mail.ac4.yahoo.com>
<AANLkTinv8-YmUA+QJOu83uuT=Mw9pxbTKZqreGx-_3y2@mail.gmail.com>
Hi Marti,
Thanks for your tips. i will try those.
I am on Solaris Sparc 5.10
Best Regards,
Divakar
________________________________
From: Marti Raudsepp <marti@juffo.org>
To: Divakar Singh <dpsmails@yahoo.com>
Cc: pgsql-performance@postgresql.org
Sent: Mon, November 1, 2010 6:23:17 PM
Subject: Re: [PERFORM] Insert performance with composite index
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
view thread (16+ messages) latest in thread
Message-ID: <235610.98703.qm@web65413.mail.ac4.yahoo.com> Permalink: ../235610.98703.qm@web65413.mail.ac4.yahoo.com/ Also on: postgresql.org/message-id/235610.98703.qm@web65413.mail.ac4.yahoo.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: dpsmails@yahoo.com, marti@juffo.org Subject: Re: Insert performance with composite index In-Reply-To: <235610.98703.qm@web65413.mail.ac4.yahoo.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox