pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: =?iso-8859-15?q?Herv=E9_Piedvache?= <herve@elma.fr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tsearch2 really slower than ilike ?
Date: Tue, 16 Nov 2004 08:32:57 -0700
Message-ID: <20041116153256.GA6026@winnie.fuhr.org> (raw)
In-Reply-To: <200411161555.59144.herve@elma.fr>
References: <200411161555.59144.herve@elma.fr>

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/



view thread (16+ messages)  latest in thread

Message-ID: <20041116153256.GA6026@winnie.fuhr.org>
Permalink:  ../20041116153256.GA6026@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041116153256.GA6026@winnie.fuhr.org

 · 

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: mike@fuhr.org, herve@elma.fr
  Subject: Re: Tsearch2 really slower than ilike ?
  In-Reply-To: <20041116153256.GA6026@winnie.fuhr.org>

* 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