pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: Slow performance when querying millions of rows
Date: Tue, 28 Jun 2011 20:51:50 -0400
Message-ID: <4E0A7726.2040809@2ndQuadrant.com> (raw)
In-Reply-To: <20110628232643.3a3e6337@mail.openroadsconsulting.com>
References: <20110628232643.3a3e6337@mail.openroadsconsulting.com>

On 06/28/2011 07:26 PM, Craig McIlwee wrote:
> Yes, the data import is painfully slow but I hope to make up for that 
> with the read performance later.

You can probably improve that with something like this:

shared_buffers=512MB
checkpoint_segments=64

Maybe bump up maintenance_work_mem too, if the vacuum part of that is 
the painful one.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
Comprehensive and Customized PostgreSQL Training Classes:
http://www.2ndquadrant.us/postgresql-training/




view thread (9+ messages)  latest in thread

Message-ID: <4E0A7726.2040809@2ndQuadrant.com>
Permalink:  ../4E0A7726.2040809@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4E0A7726.2040809@2ndQuadrant.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: greg@2ndQuadrant.com
  Subject: Re: Slow performance when querying millions of rows
  In-Reply-To: <4E0A7726.2040809@2ndQuadrant.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