From: tv@fuzzy.cz
To: Adarsh Sharma <adarsh.sharma@orkash.com>
Cc: Kenneth Marshall <ktm@rice.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Help with Query Tuning
Date: Thu, 17 Mar 2011 10:34:54 +0100
Message-ID: <4874ad87076c4b2c743083543cae2334.squirrel@sq.gransy.com> (raw)
In-Reply-To: <4D81A951.7030609@orkash.com>
References: <4D807F42.7000906@orkash.com>
<20110316163653.GF11541@aart.is.rice.edu>
<4D81A951.7030609@orkash.com>
> *Modified Query :-
>
> *SELECT count(*) from page_content
> WHERE publishing_date like '%2010%' and content_language='en' and
> content is not null and isprocessable = 1 and
> to_tsvectOR('english',content) @@ to_tsquery('english','Mujahid' ||
> 'jihad' || 'Militant' || 'fedayeen' || 'insurgent' || 'terrORist' ||
> 'cadre' || 'civilians' || 'police' || 'defence' || 'cops' || 'crpf' ||
> 'dsf' || 'ssb');
I guess there should be spaces between the words. This way it's just one
very long word 'MujahidjihadMilitantfedayeen....' and I doubt that's what
you're looking for.
regards
Tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tv@fuzzy.cz, adarsh.sharma@orkash.com, ktm@rice.edu
Subject: Re: Help with Query Tuning
In-Reply-To: <4874ad87076c4b2c743083543cae2334.squirrel@sq.gransy.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox