Re: Tsearch2 really slower than ilike ?

From: Hervé Piedvache <herve(at)elma(dot)fr>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 really slower than ilike ?
Date: 2004-11-16 15:48:11
Message-ID: 200411161648.11519.herve@elma.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Michael,

Le Mardi 16 Novembre 2004 16:32, Michael Fuhr a écrit :
> 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.

Yes site name ... is company names or web site name ... so not many word in
each record ... but I don't understand why more words are more efficient than
few words ?? sorry ...

Regards,
--
Hervé Piedvache

Elma Ingénierie Informatique
6 rue du Faubourg Saint-Honoré
F-75008 - Paris - France
Pho. 33-144949901
Fax. 33-144949902

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message James Gunzelman 2004-11-16 15:57:07 Efficient way to remove OID data
Previous Message Michael Fuhr 2004-11-16 15:32:57 Re: Tsearch2 really slower than ilike ?