Re: Tsearch2 Initial Search Speed

From: Howard Cole <howardnews(at)selestial(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 Initial Search Speed
Date: 2008-06-17 11:23:29
Message-ID: 48579EB1.8050403@selestial.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew Wakeling 2008-06-17 11:30:48 Re: Tsearch2 Initial Search Speed
Previous Message Matthew Wakeling 2008-06-17 11:04:06 Re: Tsearch2 Initial Search Speed