Re: query is taking longer time after a while

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: tomrevam <tomer(at)fabrix(dot)tv>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: query is taking longer time after a while
Date: 2009-09-30 12:30:44
Message-ID: 20090930083044.c79b92e5.wmoran@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to tomrevam <tomer(at)fabrix(dot)tv>:
>

My apologies, I should have asked for the output of VACUUM VERBOSE on
the problem table in conjunction with these settings. (make sure you
do VACUUM VERBOSE when the table is exhibiting the speed problem)

>
> Bill Moran wrote:
> >
> > The OP did mention that he's using autovac, which will take care of
> > both vacuum and analyze for him. However, he didn't provide his
> > autovac config, and it happens at times that the defaults are not
> > aggressive enough to keep a table well-maintained.
> >
>
> Here are my autovac configuration parameters. I played around with them to
> make autovac work frequently.
>
> #autovacuum = on
> log_autovacuum_min_duration = 0
> autovacuum_max_workers = 10
> autovacuum_naptime = 10s
> autovacuum_vacuum_threshold = 2000
> autovacuum_analyze_threshold = 2000
> autovacuum_vacuum_scale_factor = 0.0005
> autovacuum_analyze_scale_factor = 0.0005
> #autovacuum_freeze_max_age = 200000000
> #autovacuum_vacuum_cost_delay = 20
> --
> View this message in context: http://www.nabble.com/query-is-taking-longer-time-after-a-while-tp25661219p25675635.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2009-09-30 12:38:14 Re: query is taking longer time after a while
Previous Message Devrim GÜNDÜZ 2009-09-30 11:49:40 Re: Postgresql Web Hosting