pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Dittmer <jdi@l4x.org>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Bruno Rodrigues Siqueira <bruno@ravnus.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: select on 1milion register = 6s
Date: Wed, 01 Aug 2007 19:37:11 +0200
Message-ID: <46B0C4C7.7000202@l4x.org> (raw)
In-Reply-To: <dcc563d10707282151m7a2de11ex5f593cfc19b98095@mail.gmail.com>
References: <46ABA01E.8000802@emolecules.com>
	<002001c7d153$944f3c60$e900a8c0@brunolaptop>
	<dcc563d10707282151m7a2de11ex5f593cfc19b98095@mail.gmail.com>

Scott Marlowe wrote:
>> random_page_cost = 1                    # units are one sequential page
>> fetch
> 
> Seldom if ever is it a good idea to bonk the planner on the head with
> random_page_cost=1.  setting it to 1.2 ot 1.4 is low enough, but 1.4
> to 2.0 is more realistic.

Which is probably the reason why the planner thinks a seq scan is
faster than an index scan...

Jan



view thread (6+ messages)

Message-ID: <46B0C4C7.7000202@l4x.org>
Permalink:  ../46B0C4C7.7000202@l4x.org/
Also on:    postgresql.org/message-id/46B0C4C7.7000202@l4x.org

 · 

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-performance@postgresql.org
  Cc: jdi@l4x.org, scott.marlowe@gmail.com, bruno@ravnus.com
  Subject: Re: select on 1milion register = 6s
  In-Reply-To: <46B0C4C7.7000202@l4x.org>

* 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