Re: PostgreSQL 9.1 : why is this query slow?

Поиск
Список
Период
Сортировка
От Joost Kraaijeveld
Тема Re: PostgreSQL 9.1 : why is this query slow?
Дата
Msg-id 1322499469.3343.25.camel@panoramix.Askesis.nl
обсуждение исходный текст
Ответ на PostgreSQL 9.1 : why is this query slow?  (Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>)
Ответы Re: PostgreSQL 9.1 : why is this query slow?
Список pgsql-performance
On Mon, 2011-11-28 at 17:42 +0100, Joost Kraaijeveld wrote:
> - Is there a way to rephrase the query that makes it faster?
This query goes faster (6224 ms, but I am not sure it gives the correct
answer as the result differs from my Java program):

select word, count (word) from unique_words
where
word in (select word from unique_words where
     word in ( select word from unique_words where filetype = 'f')
     and
     filetype = 's')
and
filetype = 'n'
group by word


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl


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

Предыдущее
От: Joost Kraaijeveld
Дата:
Сообщение: PostgreSQL 9.1 : why is this query slow?
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: PostgreSQL 9.1 : why is this query slow?