Re: query optimisation

From: "shreedhar" <shreedhar(at)lucidindia(dot)net>
To: "Abdul-wahid Paterson" <aw(at)lintrix(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: query optimisation
Date: 2003-03-16 05:06:33
Message-ID: 011601c2eb7a$55dc3eb0$1201a8c0@a4005
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

1. Have you checked whether all fields which you are joining are indexed.

2. Are you sure that your query is not have any subselects, if it have any
subselects convert into joins.

3.Check what is the size of tables. If tables size is very big do filter
condtions

4. Even if you feel that your query is still working slow, then denormalise
your database and avoid atleast some joins.

Regards,
Sreedhar

----- Original Message -----
From: "Abdul-wahid Paterson" <aw(at)lintrix(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Saturday, March 15, 2003 6:39 AM
Subject: [GENERAL] query optimisation

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2003-03-16 07:08:40 Re: Droping a database even if someone is connected
Previous Message Oliver Elphick 2003-03-15 22:40:04 Re: socket error