Re: select count(*) from anIntColumn where int_value = 0;

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: select count(*) from anIntColumn where int_value = 0;
Дата
Msg-id Pine.LNX.4.33.0402110901580.32376-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re: select count(*) from anIntColumn where int_value = 0; is very slow  (David Teran <david.teran@cluster9.com>)
Ответы Re: select count(*) from anIntColumn where int_value =  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-performance
On Wed, 11 Feb 2004, David Teran wrote:

> Hi,
>
> > Is your int_value data type int4? If not then use "... from
> > job_property
> > where int_value = '0'"
> > Indexes are used only if datatypes matches.
> >
> tried those variations already. Strange enough, after dropping and
> recreating the index everything worked fine.

Has that table been updated a lot in its life?  If so, it may have had a
problem with index bloat...


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: update performance
Следующее
От: alemon@tiago.hazor.com.br
Дата:
Сообщение: Re: slow database