Re: select count(*) from a large table is very slow

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: select count(*) from a large table is very slow
Дата
Msg-id 36e682920705180622t7e60d5e0rf4143d4af336967f@mail.gmail.com
обсуждение исходный текст
Ответ на select count(*) from a large table is very slow  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-admin
On 5/18/07, Jessica Richard <rjessil@yahoo.com> wrote:
> I have a ~30 milliow row table, select count(*) from this table is very very
> very slow...

Yes, see the topic "Much Ado about COUNT(*)"

> How dow I get it run faster?

Unfortunately, aside from reducing the size of the table, you can't.

--
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 3rd Floor            | jharris@enterprisedb.com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/

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

Предыдущее
От: Jessica Richard
Дата:
Сообщение: select from dblink very slow
Следующее
От: Jessica Richard
Дата:
Сообщение: cross database references...