Re: Interesting performance behaviour - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Interesting performance behaviour
Date
Msg-id 200409101446.53309.josh@agliodbs.com
Whole thread Raw
In response to Interesting performance behaviour  (Joey Smith <joeysmith@gmail.com>)
Responses Re: Interesting performance behaviour
List pgsql-performance
Joey,

> shared_buffers = 1000
> sort_mem = 1024
> effective_cache_size = 1000

effective_cache_size should be much higher, like 3/4 of your available RAM.
This is probably the essence of your planner problem; the planner thinks you
have no RAM.

> I see a similar speedup (and change in query plan) using "LIMIT 1
> OFFSET <anything besides 0>".

So what's your problem?

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: Joey Smith
Date:
Subject: Interesting performance behaviour
Next
From:
Date:
Subject: effective_cache_size in 7.3.4?