pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hervé Piedvache <herve@elma.fr>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tsearch2 really slower than ilike ?
Date: Tue, 16 Nov 2004 16:48:11 +0100
Message-ID: <200411161648.11519.herve@elma.fr> (raw)
In-Reply-To: <20041116153256.GA6026@winnie.fuhr.org>
References: <200411161555.59144.herve@elma.fr>
	<20041116153256.GA6026@winnie.fuhr.org>

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



view thread (16+ messages)  latest in thread

Message-ID: <200411161648.11519.herve@elma.fr>
Permalink:  ../200411161648.11519.herve@elma.fr/
Also on:    postgresql.org/message-id/200411161648.11519.herve@elma.fr

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: herve@elma.fr, mike@fuhr.org
  Subject: Re: Tsearch2 really slower than ilike ?
  In-Reply-To: <200411161648.11519.herve@elma.fr>

* 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