pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: cluster <skrald@amossen.dk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query only slow on first run
Date: Wed, 28 Nov 2007 01:28:18 +0100
Message-ID: <20071128002818.GA24445@uio.no> (raw)
In-Reply-To: <15029.1196209554@sss.pgh.pa.us>
References: <fihgt1$1mmh$1@news.hub.org>
	<20071127165543.GY11978@crankycanuck.ca>
	<23999.1196184368@sss.pgh.pa.us>
	<fihn7h$2jrn$1@news.hub.org>
	<056501c83128$55d58a90$8e00a8c0@tridecap.com>
	<fii71p$oc1$1@news.hub.org>
	<20071127233833.GA24031@uio.no>
	<15029.1196209554@sss.pgh.pa.us>

On Tue, Nov 27, 2007 at 07:25:54PM -0500, Tom Lane wrote:
>> You could make an index on (question_id,status) (or a partial index on
>> question id, with status=1 as the filter), but I'm not sure how much it would
>> help you unless the questions table is extremely big. It doesn't appear to
>> be; in fact, it appears to be all in RAM, so that's not your bottleneck.
> Wouldn't help, because the accesses to "questions" are not the problem.

Yes, that was my point too. :-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/



view thread (24+ messages)  latest in thread

Message-ID: <20071128002818.GA24445@uio.no>
Permalink:  ../20071128002818.GA24445@uio.no/
Also on:    postgresql.org/message-id/20071128002818.GA24445@uio.no

 · 

reply

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: sgunderson@bigfoot.com, tgl@sss.pgh.pa.us, skrald@amossen.dk
  Subject: Re: Query only slow on first run
  In-Reply-To: <20071128002818.GA24445@uio.no>

* 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