Re: 4s query want to run faster

From: "Adonias Malosso" <malosso(at)gmail(dot)com>
To: "Claus Guttesen" <kometen(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 4s query want to run faster
Date: 2008-02-21 21:23:36
Message-ID: 8a5d3c890802211323j2a7e2ebdye42f988222046e44@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Set random_page_cost = 2 solved the problem. thanks

On Thu, Feb 21, 2008 at 6:16 PM, Claus Guttesen <kometen(at)gmail(dot)com> wrote:

> > > > why it doesn´t use index for the primary keys in the join
> conditions?
> > >
> > > Maby random_page_cost is set too high? What version are you using?
> >
> > Postgresql v. 8.2.1
>
> You can try to lower this value. The default (in 8.3) is 4.
>
> --
> regards
> Claus
>
> When lenity and cruelty play for a kingdom,
> the gentlest gamester is the soonest winner.
>
> Shakespeare
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2008-02-21 21:25:35 Re: 4s query want to run faster
Previous Message Claus Guttesen 2008-02-21 21:16:20 Re: 4s query want to run faster