pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Bartunov <oleg@sai.msu.su>
To: Hervé Piedvache <herve@elma.fr>
Cc: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tsearch2 really slower than ilike ?
Date: Tue, 16 Nov 2004 19:17:35 +0300 (MSK)
Message-ID: <Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su> (raw)
In-Reply-To: <200411161648.11519.herve@elma.fr>
References: <200411161555.59144.herve@elma.fr>
	<20041116153256.GA6026@winnie.fuhr.org>
	<200411161648.11519.herve@elma.fr>

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



view thread (16+ messages)  latest in thread

Message-ID: <Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su>
Permalink:  ../Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su/
Also on:    postgresql.org/message-id/Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: oleg@sai.msu.su, herve@elma.fr, mike@fuhr.org
  Subject: Re: Tsearch2 really slower than ilike ?
  In-Reply-To: <Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su>
  References: <200411161555.59144.herve@elma.fr> <20041116153256.GA6026@winnie.fuhr.org> <200411161648.11519.herve@elma.fr> <Pine.GSO.4.61.0411161915050.10356@ra.sai.msu.su>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox