Re: query taking too long

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query taking too long
Дата
Msg-id 24734.1048884492@sss.pgh.pa.us
обсуждение исходный текст
Ответ на query taking too long  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Список pgsql-general
"Johnson, Shaunn" <SJohnson6@bcbsm.com> writes:
> <P><FONT SIZE=3D2>How can I modify this to be more efficient?</FONT>

[Please don't post HTML...]

I think the first question to ask is whether it's even correct.  It
looks to me like the EXISTS doesn't depend on the outer query, so
it's effectively a constant, and assuming that the constant is TRUE,
*every* row of db2_pos_fac_rev_02 will be returned.

Also, have you done VACUUM ANALYZE lately?  The explain estimates
seem suspiciously low.

            regards, tom lane


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

Предыдущее
От: "Johnson, Shaunn"
Дата:
Сообщение: query taking too long
Следующее
От: Guy Fraser
Дата:
Сообщение: Re: Realistic upper bounds on DB size