Re: Query plan - now what? - Mailing list pgsql-performance

From Shridhar Daithankar
Subject Re: Query plan - now what?
Date
Msg-id 3FD986DD.7000909@persistent.co.in
Whole thread Raw
In response to Query plan - now what?  (David Shadovitz <david@shadovitz.com>)
List pgsql-performance
David Shadovitz wrote:

> Well, now that I have the plan for my slow-running query, what do I do?  Where
> should I focus my attention?

Briefly looking over the plan and seeing the estimated v/s actual row mismatch,I
can suggest you following.

1. Vacuum(full) the database. Probably you have already done it.
2. Raise statistics_target to 500 or more and reanalyze the table(s) in question.
3. Set enable_hash_join to false, before running the query and see if it helps.

  HTH

  Shridhar

pgsql-performance by date:

Previous
From: David Shadovitz
Date:
Subject: Query plan - now what?
Next
From: Hartmut Raschick
Date:
Subject: Re: TRUNCATE veeeery slow compared to DELETE in 7.4