Re: Query only slow on first run

Поиск
Список
Период
Сортировка
От Steinar H. Gunderson
Тема Re: Query only slow on first run
Дата
Msg-id 20071128002818.GA24445@uio.no
обсуждение исходный текст
Ответ на Re: Query only slow on first run  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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/

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query only slow on first run
Следующее
От: "Shadkam Islam"
Дата:
Сообщение: Windows XP selects are very slow