pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: How to improve insert speed with index on text column
Date: Tue, 31 Jan 2012 10:46:40 -0800
Message-ID: <4F283710.5040608@agliodbs.com> (raw)
In-Reply-To: <21d33cd6ba3c80ad896633820f6b27ed.squirrel@sq.gransy.com>
References: <bdd5c927-eeb7-46ed-a9a6-231b731f37e8@t15g2000yqi.googlegroups.com>
	<CAMkU=1yfqP=HCpYQg3Pe+x-ZynC-egBnkSQ2dUUNOmt8D6wCPA@mail.gmail.com>
	<c67d3789-74c8-4b20-aa2b-451ca0649f71@kn4g2000pbc.googlegroups.com>
	<CAMkU=1xUVrz9reeUgXGQYht12WPaf4yEBoX-rKa5kAq-u0jE5A@mail.gmail.com>
	<94613a40-9ed8-403f-b7ce-92cfd50b81d3@o20g2000yqh.googlegroups.com>
	<21d33cd6ba3c80ad896633820f6b27ed.squirrel@sq.gransy.com>


> Shared buffers is the cache maintained by PostgreSQL. All all the data
> that you read/write need to go through shared buffers.

While this is technically true, I need to point out that you generally
increase shared_buffers for high concurrency, and for reads, not for
writes, especially for row-at-a-time inserts.  There's just not that
much memory required (although more than the out-of-the-box defaults).

I'd suggest increasing wal_buffers to 16MB, which is the maximum useful
amount, rather than 5MB.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



view thread (19+ messages)  latest in thread

Message-ID: <4F283710.5040608@agliodbs.com>
Permalink:  ../4F283710.5040608@agliodbs.com/
Also on:    postgresql.org/message-id/4F283710.5040608@agliodbs.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: josh@agliodbs.com
  Subject: Re: How to improve insert speed with index on text column
  In-Reply-To: <4F283710.5040608@agliodbs.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