Re: How to speed up word count in tsearch2?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: How to speed up word count in tsearch2?
Дата
Msg-id 200503311250.45932.josh@agliodbs.com
обсуждение исходный текст
Ответ на How to speed up word count in tsearch2?  (Yudie Pg <yudiepg@gmail.com>)
Ответы Re: How to speed up word count in tsearch2?
Список pgsql-performance
Yudie,

> (It is the 2nd posting, maybe the 1st one didn't goes thru)
> I've tested several keyword count from 2 millions record book
> description table that indexed with tseach2 indexing.
> The result is always slow for first query attempt.

Yes, this is because your tsearch2 index is getting pushed out of RAM.   When
the index is cached it's very, very fast but takes a long time to get loaded
from disk.

You need to look at what else is using RAM on that machine.  And maybe buy
more.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Yudie Pg
Дата:
Сообщение: How to speed up word count in tsearch2?
Следующее
От: PFC
Дата:
Сообщение: Re: Very long time to execute and Update, suggestions?