pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Aftab Alam <aalam@tsrdarashaw.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres Performance
Date: Fri, 21 Mar 2008 12:50:10 -0700
Message-ID: <47E41172.5000400@pinpointresearch.com> (raw)
In-Reply-To: <47E2E19D.1050909@pinpointresearch.com>
References: <fc8d635e-6c27-4d85-9d14-eb5bc181e1b1>
	<47E2E19D.1050909@pinpointresearch.com>

 > I am using postgres 7.0 with linux with 15 GB of database &
 > 3 gb of RAM. Can anyone suggest what is the best setting
 > for postgres. I am using postgres as web db.

You mentioned elsewhere that you are getting 2,000 hits/day. I don't 
know the nature of your web app but typical web apps involve pretty 
simple transactions. Even with an average of 10 database transactions 
per hit, your average is less than 0.25 TPS - several orders of 
magnitude lower than the likely capacity of your hardware.

If you are experiencing performance problems I think that you may need 
to look into more than the config file:

1. Are you vacuuming regularly? If not, you may need a vacuum full 
followed by regular vacuuming.

2. Have you established appropriate indexes?

3. Are you running analyze to allow the planner to use the indexes you 
created?

Cheers,
Steve




view thread (12+ messages)  latest in thread

Message-ID: <47E41172.5000400@pinpointresearch.com>
Permalink:  ../47E41172.5000400@pinpointresearch.com/
Also on:    postgresql.org/message-id/47E41172.5000400@pinpointresearch.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-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, aalam@tsrdarashaw.com
  Subject: Re: Postgres Performance
  In-Reply-To: <47E41172.5000400@pinpointresearch.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