Re: count * performance issue

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: count * performance issue
Дата
Msg-id B94D3180-BB72-43EB-BA1E-90CF53705386@fastcrypt.com
обсуждение исходный текст
Ответ на Re: count * performance issue  ("sathiya psql" <sathiya.psql@gmail.com>)
Список pgsql-performance
On 6-Mar-08, at 1:43 AM, sathiya psql wrote:

> is there any way to explicitly force the postgres to use index scan
>
>

If you want to count all the rows in the table there is only one way
to do it (without keeping track yourself with a trigger ); a seq scan.

An index will not help you.

The only thing that is going to help you is really fast disks, and
more memory, and you should consider moving to 8.3 for all the other
performance benefits.

Dave

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

Предыдущее
От: "sathiya psql"
Дата:
Сообщение: index usage makes problem
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: count * performance issue