Re: Tsearch2 Initial Search Speed - Mailing list pgsql-performance

From Howard Cole
Subject Re: Tsearch2 Initial Search Speed
Date
Msg-id 48579EB1.8050403@selestial.com
Whole thread Raw
In response to Re: Tsearch2 Initial Search Speed  (Matthew Wakeling <matthew@flymine.org>)
Responses Re: Tsearch2 Initial Search Speed
Re: Tsearch2 Initial Search Speed
List 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 by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: Tsearch2 Initial Search Speed
Next
From: Matthew Wakeling
Date:
Subject: Re: Tsearch2 Initial Search Speed