Re: Observation about db response time

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: Observation about db response time
Дата
Msg-id 4A58CB9B-F92A-40F9-99B8-CD783B1B71C2@khera.org
обсуждение исходный текст
Ответ на Observation about db response time  ("Akshay Mathur" <akshay.mathur@airtightnetworks.net>)
Список pgsql-performance

On Aug 30, 2005, at 9:05 AM, Akshay Mathur wrote:

We were having a database in pgsql7.4.2 The database was responding very slowly even after full vacuum analyze (select count(*) from some_table_having_18000_records was taking 18 Sec).

On a 7.4.2 db, there should probably be no index bloat, but there could be.  Does REINDEX on your tables help?  If not, then VACUUM FULL followed by REINDEX may help.  The latter should result in nearly the same as your dump+restore.  And you need to run vacuum often enough to keep your tables from bloating.  How often that is depends on your update/delete rate.

Also, updating to 8.0 may help.

Vivek Khera, Ph.D.

+1-301-869-4449 x806



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

Предыдущее
От: Ron
Дата:
Сообщение: Re: RAID Configuration Sugestion
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Need indexes on empty tables for good performance ?