Re: About TSearch2 Performance

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: About TSearch2 Performance
Дата
Msg-id 3F9539A2.9040500@sigaev.ru
обсуждение исходный текст
Ответ на About TSearch2 Performance  (Diogo Biazus <diogo@ikono.com.br>)
Ответы Re: About TSearch2 Performance
Список 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@sigaev.ru


В списке pgsql-general по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Recomended FS
Следующее
От: "James Moe"
Дата:
Сообщение: Re: Recomended FS