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

Re: Query uses incorrect index

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query uses incorrect index
Date: 2010-12-22 09:38:15
Message-ID: 874oa6w3js.fsf@meuh.mnc.lan (view raw or flat)
Thread:
Lists: pgsql-performance
pasman pasmański <pasman.p 'at' gmail.com> writes:

> Thanks for reply.
> I tested random changes and query runs fastest after:
>
> set seq_page_cost = 0.1;
> set random_page_cost = 0.1;
> cpu_operator_cost = 0.01

If I'm correct, you're basically telling postgresql that your
disk is unusually fast compared to your CPU. Even if some queries
will run faster from a side-effect of these settings, you're
likely to create other random problems...

-- 
Guillaume Cottenceau

In response to

pgsql-performance by date

Next:From: Marti RaudseppDate: 2010-12-22 10:58:33
Subject: Re: MySQL HandlerSocket - Is this possible in PG?
Previous:From: pasman pasmańskiDate: 2010-12-22 09:22:00
Subject: Re: Query uses incorrect index

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