From: Josh Berkus <josh@agliodbs.com>
To: Joey Smith <joeysmith@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Interesting performance behaviour
Date: Fri, 10 Sep 2004 14:46:53 -0700
Message-ID: <200409101446.53309.josh@agliodbs.com> (raw)
In-Reply-To: <e41f745b0409101401212939ff@mail.gmail.com>
References: <e41f745b0409101401212939ff@mail.gmail.com>
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
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: josh@agliodbs.com, joeysmith@gmail.com
Subject: Re: Interesting performance behaviour
In-Reply-To: <200409101446.53309.josh@agliodbs.com>
* 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