Re: very very slow inserts into very large table - Mailing list pgsql-performance

From Claudio Freire
Subject Re: very very slow inserts into very large table
Date
Msg-id CAGTBQpZ6+VF5WKz8UQaKdWhznV3Ry=HuQnvRRhOk-nGV_t1gkQ@mail.gmail.com
Whole thread Raw
In response to Re: very very slow inserts into very large table  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-performance
On Tue, Jul 17, 2012 at 1:24 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> Also, while indexes are not formally kept in logical order, but they
> do tend to be biased in that direction in most cases.  I've found that
> even if you are only inserting one row for every 4 or 5 leaf pages,
> you still get substantial improvement by doing so in sorted order.

Yep, I do the same. Whenever I have to perform massive updates, I sort them.

Although "massive" for me is nowhere near what "massive" for the OP is.

pgsql-performance by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Slow application response on lightly loaded server?
Next
From: Mike Blackwell
Date:
Subject: Re: Slow application response on lightly loaded server?