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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-performance by date

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