From: | "Alexander Staubo" <alex(at)purefiction(dot)net> |
---|---|
To: | "Tom Allison" <tom(at)tacocat(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: When should I worry? |
Date: | 2007-06-10 16:36:41 |
Message-ID: | 88daf38c0706100936t78f17536kd06787ad4470f1db@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 6/10/07, Tom Allison <tom(at)tacocat(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Andrej Kastrin | 2007-06-10 16:40:19 | Re: How to count pairs? |
Previous Message | Tom Allison | 2007-06-10 14:43:10 | When should I worry? |