Skip site navigation (1) Skip section navigation (2)

Re: Query only slow on first run

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: cluster <skrald(at)amossen(dot)dk>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Query only slow on first run
Date: 2007-11-28 00:28:18
Message-ID: 20071128002818.GA24445@uio.no (view raw or flat)
Thread:
Lists: pgsql-performance
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/

In response to

pgsql-performance by date

Next:From: tmpDate: 2007-11-28 01:08:40
Subject: Re: Query only slow on first run
Previous:From: Tom LaneDate: 2007-11-28 00:25:54
Subject: Re: Query only slow on first run

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group