Re: Tsearch2 really slower than ilike ?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: =?iso-8859-15?q?Herv=E9_Piedvache?= <herve(at)elma(dot)fr>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 really slower than ilike ?
Date: 2004-11-16 15:32:57
Message-ID: 20041116153256.GA6026@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Nov 16, 2004 at 03:55:58PM +0100, Herv Piedvache wrote:

> WHERE s.idx_site_name @@ to_tsquery('atari');

How much text does each site_name field contain? From the field
name I'd guess only a few words. Based on my own experience, if
the fields were documents containing thousands of words then I'd
expect tsearch2 to be faster than ILIKE by an order of magnitude
or more.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Hervé Piedvache 2004-11-16 15:48:11 Re: Tsearch2 really slower than ilike ?
Previous Message Hervé Piedvache 2004-11-16 14:55:58 Tsearch2 really slower than ilike ?