Re: query optimization

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-performance(at)postgresql(dot)org>, "Richard Kojedzinszky" <krichy(at)tvnetwork(dot)hu>
Subject: Re: query optimization
Date: 2012-04-26 18:23:38
Message-ID: 4F994C5A02000025000473FD@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Richard Kojedzinszky <krichy(at)tvnetwork(dot)hu> wrote:

> tuning our installation to not to use sequence scans in this case?

Make sure effective_cache_size is set to the sum of shared_buffers
and whatever your OS shows as usable for caching. Try adjusting
cost factors: maybe random_page_cost between 1 and 2, and
cpu_tuple_cost between 0.03 and 0.05.

-Kevin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2012-04-26 19:17:18 Re: query optimization
Previous Message Claudio Freire 2012-04-26 18:23:09 Re: Weird plan variation with recursive CTEs