Skip site navigation (1) Skip section navigation (2)

Re: Help with Query Tuning

From: Reid Thompson <Reid(dot)Thompson(at)ateb(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Help with Query Tuning
Date: 2011-03-18 14:05:33
Message-ID: 4D8366AD.70001@ateb.com (view raw or flat)
Thread:
Lists: pgsql-performance
On 03/18/2011 12:17 AM, Adarsh Sharma wrote:
> Thanks , it works now ..:-)
>
> Here is the output :
>
> pdc_uima=# SELECT count(*)  from page_content WHERE publishing_date like '%2010%' and
> pdc_uima-# content_language='en' and content is not null and isprocessable = 1 and
> pdc_uima-# to_tsvector('english',content) @@ to_tsquery('english','Mujahid' || ' | '
> pdc_uima(# || 'jihad' || ' | ' || 'Militant' || ' | ' || 'fedayeen' || ' | '
> pdc_uima(# || 'insurgent' || ' | ' || 'terrORist' || ' | ' || 'cadre' || ' | '
> pdc_uima(# || 'civilians' || ' | ' || 'police' || ' | ' || 'cops' || 'crpf' || ' | '
> pdc_uima(# || 'defence' || ' | ' || 'dsf' || ' | ' || 'ssb' );
>
>   count
> --------
>   137193
> (1 row)
>
> Time: 195441.894 ms

what is the type/content for column publishing_date?
based on what you show above, I assume it's text? -- if so, whats the format of the date string?


In response to

pgsql-performance by date

Next:From: Nicholson, Brad (Toronto, ON, CA)Date: 2011-03-18 14:23:57
Subject: Re: Help: massive parallel update to the same table
Previous:From: Red MapleDate: 2011-03-18 13:05:23
Subject: Help: massive parallel update to the same table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group