@@ to_tsquery help - Mailing list pgsql-general

From akp geek
Subject @@ to_tsquery help
Date
Msg-id AANLkTimRWE8NQRT03v5+gP3YzdyxzvBU1kDzt85Hm0Cy@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: Glenn Maynard
Date:
Subject: Re: Why count(*) doest use index?
Next
From: "David Johnston"
Date:
Subject: Re: Using bytea field...