Re: Tsearch2 Initial Search Speed

Поиск
Список
Период
Сортировка
От Howard Cole
Тема Re: Tsearch2 Initial Search Speed
Дата
Msg-id 48579EB1.8050403@selestial.com
обсуждение исходный текст
Ответ на Re: Tsearch2 Initial Search Speed  (Matthew Wakeling <matthew@flymine.org>)
Ответы Re: Tsearch2 Initial Search Speed  (Matthew Wakeling <matthew@flymine.org>)
Re: Tsearch2 Initial Search Speed  (Alan Hodgson <ahodgson@simkin.ca>)
Список pgsql-performance
> As far as I can see, that shouldn't make any difference. Both queries
> still do the bitmap heap scan, and have almost exactly the same cost.
>
> Matthew
>
You may have a point there Matthew, they both appear to do a scan on the
email table (Why?). But for whatever reason, I swear the second method
is significantly faster! If I run the new style query first, then the
original style (to_tsquery as q) then the original style still takes
longer, even with the new style cached!

Incidentally, how can I clear the cache in between queries?

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

Предыдущее
От: Matthew Wakeling
Дата:
Сообщение: Re: Tsearch2 Initial Search Speed
Следующее
От: Matthew Wakeling
Дата:
Сообщение: Re: Tsearch2 Initial Search Speed