pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Becky Neville <rebecca.neville@yale.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: why is the db so slow?
Date: Sat, 03 May 2003 11:31:00 -0700
Message-ID: <3EB40AE4.8080007@joeconway.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305031334230.7237-100000@termite.zoo.cs.yale.edu>
References: <Pine.LNX.4.44.0305031334230.7237-100000@termite.zoo.cs.yale.edu>

Becky Neville wrote:
> Are there any parameters I can set to speed things up?
> 

You haven't given us much in the way of specifics to work with, but here 
is a short list of things to try/do:

- read (amongst other things):
http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/performance-tips.html
http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/runtime-config.html

- run "VACUUM ANALYZE" on your database
- adjust key default configuration settings:
   shared_buffers = 1000 (or maybe 2000 or even 4000 -- above that you'd
                          need root access, and it might not help anyway)
   sort_mem = 8192 (depending on the amount of RAM in the server, this
                    might be too high/low, but start with something in
                    the 4000 to 8000K range)
- run "EXPLAIN ANALYZE" on your queries, and send in the results and the 
table structure details to the list.

HTH,

Joe




view thread (4+ messages)  latest in thread

Message-ID: <3EB40AE4.8080007@joeconway.com>
Permalink:  ../3EB40AE4.8080007@joeconway.com/
Also on:    postgresql.org/message-id/3EB40AE4.8080007@joeconway.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: mail@joeconway.com, rebecca.neville@yale.edu
  Subject: Re: why is the db so slow?
  In-Reply-To: <3EB40AE4.8080007@joeconway.com>
  References: <Pine.LNX.4.44.0305031334230.7237-100000@termite.zoo.cs.yale.edu> <3EB40AE4.8080007@joeconway.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