Re: count(*), EXISTS, indexes

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: count(*), EXISTS, indexes
Дата
Msg-id 200304111442.48107.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: count(*), EXISTS, indexes  (Itai Zukerman <zukerman@math-hat.com>)
Ответы Re: count(*), EXISTS, indexes  (Itai Zukerman <zukerman@math-hat.com>)
Список pgsql-sql
Itai,

>   # explain select sum(weight) from rprofile rp where exists (select 1 from
rcount_prof rcp where rcp.profile ~<= rp.profile and ~rcp.psig ~<= rp.psig
and rcp.filter='{734,1944}');

I'm not familiar with the "~" that you have in the query.  What are those for?

Do you have an index on rcp.profile, rcp.psig, rcp.filter?

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Itai Zukerman
Дата:
Сообщение: Re: count(*), EXISTS, indexes
Следующее
От: Itai Zukerman
Дата:
Сообщение: Re: count(*), EXISTS, indexes