Re: Help with Query Tuning

Поиск
Список
Период
Сортировка
Искать
От
Reid Thompson
Тема
Re: Help with Query Tuning
Дата
Msg-id
4D8366AD.70001@ateb.com
Ответ на
Список
Дерево обсуждения
Help with Query Tuning Adarsh Sharma <adarsh.sharma@orkash.com>
Re: Help with Query Tuning Kenneth Marshall <ktm@rice.edu>
Re: Help with Query Tuning Adarsh Sharma <adarsh.sharma@orkash.com>
Re: Help with Query Tuning Adarsh Sharma <adarsh.sharma@orkash.com>
Re: Help with Query Tuning tv@fuzzy.cz
Re: Help with Query Tuning Reid Thompson <Reid.Thompson@ateb.com>

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?

В списке pgsql-performance по дате отправления
От: Arjen van der Meijden
Дата:
От: Red Maple
Дата:
FAQ