Search Postgresql Archives

Re: Performance degrades until dump/restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/19/2012 1:35 AM, Chris wrote:
Hello,
I'm using PG 9.1.  Data is streaming into one particularly large table
(at 11 million rows currently) on a constant basis.  It is pretty much
all inserts, very little updates or deletes (if any).
After a week or so, query performance on this table turns abysmal.  If I
dump the db, then restore, performance turns great for a while before it
starts to bog down again in the following days.

Can you post an "explain analyze" when its fast, and then again when its slow?

Are you leaving transactions open? (does "select * from pg_stat_activity" show any "idle in transaction"?)

Does memory usage increase during the week so it starts using swap?

-Andy

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux