Re: Query only slow on first run

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query only slow on first run
Дата
Msg-id 23999.1196184368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query only slow on first run  (Andrew Sullivan <ajs@crankycanuck.ca>)
Ответы Re: Query only slow on first run  (cluster <skrald@amossen.dk>)
Список pgsql-performance
Andrew Sullivan <ajs@crankycanuck.ca> writes:
> On Tue, Nov 27, 2007 at 05:33:36PM +0100, cluster wrote:
>> I have a query that takes about 7000 ms in average to complete the first
>> time it runs. Subsequent runs complete in only 50 ms. That is more than
>> a factor 100 faster! How can I make the query perform good in the first
>> run too?

> Probably by buying much faster disk hardware.

Or buy more RAM, so that the data can stay cached.

            regards, tom lane

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

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: Re: Query only slow on first run
Следующее
От: Matthew
Дата:
Сообщение: GiST indexing tuples