Re: Tsearch2 really slower than ilike ?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Hervé Piedvache <herve(at)elma(dot)fr>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 really slower than ilike ?
Date: 2004-11-16 16:17:35
Message-ID: Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

could you provide me a dump of your table (just id and tsvector columns),
so I could try on my computer. Also, plain query (simple and clean) which
demonstrated your problem would be preferred next time !

Oleg
On Tue, 16 Nov 2004, [iso-8859-15] Herv? Piedvache wrote:

> 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,
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Hervé Piedvache 2004-11-16 16:21:18 Re: Tsearch2 really slower than ilike ?
Previous Message Joshua D. Drake 2004-11-16 16:06:25 Re: Tsearch2 really slower than ilike ?