Re: When should I worry?

Поиск
Список
Период
Сортировка
От Alexander Staubo
Тема Re: When should I worry?
Дата
Msg-id 88daf38c0706100936t78f17536kd06787ad4470f1db@mail.gmail.com
обсуждение исходный текст
Ответ на When should I worry?  (Tom Allison <tom@tacocat.net>)
Ответы Re: When should I worry?
Re: When should I worry?
Список pgsql-general
On 6/10/07, Tom Allison <tom@tacocat.net> wrote:
> The table itself is small (two columns: bigint, int) but I'm wondering when I'll
> start to hit a knee in performance and how I can monitor that.

You don't say anything about what the data is in the table or what
queries you run against it, so there's not much here to give advice
about.

For the monitoring, however, you can log your queries along with
timings and timestamps, and copy them into a tool like R to
statistically analyze your performance over time. You will be able to
predict the point at which your system will be too slow to use, if
indeed the performance degradation is expontential.

You can also periodically look at the pg_stat* tables to count the
number of index scans, table scans etc. on your table (see
http://www.postgresql.org/docs/8.2/interactive/monitoring-stats.html).

Alexander.

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

Предыдущее
От: Tom Allison
Дата:
Сообщение: When should I worry?
Следующее
От: Andrej Kastrin
Дата:
Сообщение: Re: How to count pairs?