Skip site navigation (1) Skip section navigation (2)

Re: Query much faster with enable_seqscan=0

From: Jesper Krogh <jesper(at)krogh(dot)cc>
To: Ogden <lists(at)darkstatic(dot)com>
Cc: Kenneth Marshall <ktm(at)rice(dot)edu>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Query much faster with enable_seqscan=0
Date: 2010-09-21 18:51:14
Message-ID: 4C98FEA2.8030607@krogh.cc (view raw or flat)
Thread:
Lists: pgsql-performance
On 2010-09-21 20:21, Ogden wrote:
> I assume you mean random_page_cost? It is currently set to 4.0 - is it better to increase or decrease this value?
>    

Should be lowered to a bit over seq_page_cost..  and more importantly.. 
you should
make sure that you have updated your statistics .. run "ANALYZE";

-- 
Jesper

In response to

Responses

pgsql-performance by date

Next:From: OgdenDate: 2010-09-21 19:02:11
Subject: Re: Query much faster with enable_seqscan=0
Previous:From: OgdenDate: 2010-09-21 18:21:52
Subject: Re: Query much faster with enable_seqscan=0

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group