pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pandurang@manas-solutions.com
To: pgsql-admin@postgresql.org
Subject: Optimizing DB Permormanance
Date: 21 Oct 2002 01:00:21 -0700
Message-ID: <dfc9fe82.0210210000.5d4417b5@posting.google.com> (raw)

Hi there,
I am having a postgres DB on Linux Server. 
The size of DB is near abt 1.5GB and also my site is on the same
server. I am having problem that my site is very slow.
I checked size on my HDD using df -h command its showing me only 15%
disk space is allocated. But when I saw the memory allcated by the
processes using top command it shows me that CPU % is reaching near
abt 90 - 90% for postmaster.

In my PHP code there is lots of SELECT stmts also while generating
report insert and updates stmts are also there. BUT on my local PC it
works fine for fewer records. while on my production server records
are near abt 5211 it is very very slow. Sometimes I get Page not found
error.

1. So can anybody tell me what will be the reason postmaster is taking
lot of CPU usage??

2. If I created CLUSTERed Index is it feasible ?  Can it improve my
speed of Retriving records ?

Or if there is any other solution please let me know...

Thank you in advance
Regards
Pandurang

pandurang@manas-solutions.com



view thread (2+ messages)  latest in thread

Message-ID: <dfc9fe82.0210210000.5d4417b5@posting.google.com>
Permalink:  ../dfc9fe82.0210210000.5d4417b5@posting.google.com/
Also on:    postgresql.org/message-id/dfc9fe82.0210210000.5d4417b5@posting.google.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-admin@postgresql.org
  Cc: pandurang@manas-solutions.com
  Subject: Re: Optimizing DB Permormanance
  In-Reply-To: <dfc9fe82.0210210000.5d4417b5@posting.google.com>
  References: <dfc9fe82.0210210000.5d4417b5@posting.google.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