Re: About TSearch2 Performance

From: "Andrew J(dot) Kopciuch" <akopciuch(at)olympusproject(dot)org>
To: Dennis Gearon <gearond(at)fireserve(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: About TSearch2 Performance
Date: 2003-10-24 18:09:17
Message-ID: 200310241209.17478.akopciuch@olympusproject.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 24 October 2003 08:18, Dennis Gearon wrote:
> Teodor Sigaev wrote:
> > First one will be a bit faster
> >
> > Diogo Biazus wrote:
> >> Hi,
> >>
> >> Is there any performance diference between the following SQL commands:
> >>
> >> SELECT * FROM documents WHERE content_ix @@
> >> to_tsquery('word1&word2|word3');
> >>
> >> SELECT * FROM documents WHERE content_ix @@ to_tsquery('word1') AND
> >> content_ix @@ to_tsquery('word2') OR content_ix @@ to_tsquery('word3');
> >>
> >> I'm having to do this on some complex querys to put LIKEs between
> >> some ts_querys.
> >> Does anyone has such experience?
> >>
> >> Thanks in advance,
>
> What do those @@ do for the statement?

That is an operator defined when tsearch2 is installed. It does comparison on
the types from tsearch2 (tsvector, tsquery).

Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2003-10-24 18:19:05 Re: Nullable 'Foreign Key-like' Constraint
Previous Message scott.marlowe 2003-10-24 17:43:14 Re: postgres 7.3.3 on redhat 7.2