Re: About TSearch2 Performance

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Diogo Biazus <diogo(at)ikono(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: About TSearch2 Performance
Date: 2003-10-21 13:50:26
Message-ID: 3F9539A2.9040500@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Moe 2003-10-21 14:16:45 Re: Recomended FS
Previous Message Andrew Sullivan 2003-10-21 13:28:58 Re: Recomended FS