@@ to_tsquery help

Поиск
Список
Период
Сортировка
От akp geek
Тема @@ to_tsquery help
Дата
Msg-id AANLkTimRWE8NQRT03v5+gP3YzdyxzvBU1kDzt85Hm0Cy@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all -

 I have 2 tables A,B .  Can I write a select statement as follows. My query is running  slow ( 7000 ms). I have created gin index on text_col and also transactionid is PK on both tables.  thanks for your help

B has a transactionid and tsvector columns
A has trasactionid and other columns 

I have the query as

select b.col1, b.col2 
 from
 b,a
 where b.transactionid=a.transactionid
 and b.text_col @@ to_tsquery('SOMETEXT')


Regards

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

Предыдущее
От: Glenn Maynard
Дата:
Сообщение: Re: Why count(*) doest use index?
Следующее
От: "David Johnston"
Дата:
Сообщение: Re: Using bytea field...