Re: How to improve insert speed with index on text column - Mailing list pgsql-performance

From Claudio Freire
Subject Re: How to improve insert speed with index on text column
Date
Msg-id CAGTBQpapE8S2SzaxfkqiBR3KxpNCUanqzO9x3aHDeUExQGiD5A@mail.gmail.com
Whole thread Raw
In response to Re: How to improve insert speed with index on text column  (Saurabh <saurabh.b85@gmail.com>)
List pgsql-performance
On Mon, Jan 30, 2012 at 2:46 PM, Saurabh <saurabh.b85@gmail.com> wrote:
> max_connections = 100
> shared_buffers = 32MB
> wal_buffers = 1024KB
> checkpoint_segments = 3

That's a default config isn't it?

You'd do well to try and optimize it for your system. The defaults are
really, reeallly conservative.

You should also consider normalizing. I'm assuming company_name could
be company_id ? (ie: each will have many rows). Otherwise I cannot see
how you'd expect to be *constantly* inserting millions of rows. If
it's a one-time initialization thing, just drop the indices and
recreate them as you've been suggested. If you create new records all
the time, I'd bet you'll also have many rows with the same
company_name, so normalizing would be a clear win.

pgsql-performance by date:

Previous
From: Saurabh
Date:
Subject: Re: How to improve insert speed with index on text column
Next
From: Andy Colson
Date:
Subject: Re: How to improve insert speed with index on text column