pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreak@officenet.no>
To: Premsun Choltanwanich <Premsun@nsasia.co.th>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Slow Query problem
Date: Tue, 29 Jan 2008 11:24:23 +0100
Message-ID: <200801291124.23660.andreak@officenet.no> (raw)
In-Reply-To: <479F4382.C5F7.004C.0@nsasia.co.th>
References: <479DE418.C5F7.004C.0@nsasia.co.th>
	<3741.1201540806@sss.pgh.pa.us>
	<479F4382.C5F7.004C.0@nsasia.co.th>

On Tuesday 29 January 2008 09:18:00 Premsun Choltanwanich wrote:
> I already install the latest version of PostgreSQL on my machine then try
> again. I found that it has a little improvement about 0.5 second but I
> think it still slow.
>
> What is the 'more detail' you need?

Your tables, views and index definitions.

> Any other advise?

You haven't provided any information on how your tables/views look like and 
what indexes you have defined. A rule of thumb is to define an index for each 
column you join on.

-- 
Andreas Joseph Krogh <andreak@officenet.no>
Senior Software Developer / Manager
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Karenslyst Allé 11      | know how to do a thing and to watch         |
PO. Box 529 Skøyen      | somebody else doing it wrong, without       |
0214 Oslo               | comment.                                    |
NORWAY                  |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+



view thread (7+ messages)  latest in thread

Message-ID: <200801291124.23660.andreak@officenet.no>
Permalink:  ../200801291124.23660.andreak@officenet.no/
Also on:    postgresql.org/message-id/200801291124.23660.andreak@officenet.no

 · 

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-sql@postgresql.org
  Cc: andreak@officenet.no, Premsun@nsasia.co.th, tgl@sss.pgh.pa.us
  Subject: Re: Slow Query problem
  In-Reply-To: <200801291124.23660.andreak@officenet.no>

* 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