Re: more problems with count(*) on large table

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: more problems with count(*) on large table
Дата
Msg-id 20071001173353.GA20792@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: more problems with count(*) on large table  (Mike Charnoky <noky@nextbus.com>)
Список pgsql-general
Mike Charnoky wrote:
> This is strange... count(*) operations over a period of one day's worth
> of data now take ~1-2 minutes to run or ~40 minutes.  It seems that the
> first time the data is queried it takes about 40 minutes.  If I try the
> query again, it finishes in 1-2 minutes!

This is just cache effect.



--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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