pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Snow <andrew@modulus.org>
To: pgsql-admin@postgresql.org
Subject: RE: Lack of Performance
Date: Fri, 24 Nov 2000 08:21:49 +1100
Message-ID: <JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org> (raw)
In-Reply-To: <NDBBLHOFPCPHIKIOFPPBIEOMJHAA.toma@nutz.org>


> What I dont understand about it, is that the DB is not THAT big.
> The tables
> are arround 10.000-30.000 rows and there are only about 6 tables. They all
> use indexes where needed and everything is vacuumed up to 8 times
> a day. But
> the load is not affected by it. I can't seem to find "what" is
> pressing the
> db.

> Does query optimization help a lot or does it only affect the
> performance in a little manner?

I think you need to be looking at your queries to see if one or more of them
is causing the performance problem.  Look at all the EXPLAIN output for each
query, and also be aware that certain operations are always going to be
slow, eg. a function call for every row of a large table, or using the
builtin regular expression operators I found to be VERY slow.

Perhaps post more details here to the list in case anyone can spot anything.
Do some tests and find which query takes the longest.  Find out if it is
actually postgresql that is using all the CPU time. Include details of what
versions of PostgreSQL and operating system you are using as well as
hardware configuration.


- Andrew





view thread (7+ messages)  latest in thread

Message-ID: <JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org>
Permalink:  ../JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org/
Also on:    postgresql.org/message-id/JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org

 · 

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: andrew@modulus.org
  Subject: Re: Lack of Performance
  In-Reply-To: <JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org>
  References: <NDBBLHOFPCPHIKIOFPPBIEOMJHAA.toma@nutz.org> <JEEGIJPOJIGGIIHGKOKOCEEKCFAA.andrew@modulus.org>

* 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