Re: [PERFORM] Slow query even with aggressive auto analyze

2013-02-09 Thread Amit kapila
On Friday, February 08, 2013 6:06 PM Karolis Pocius wrote: I've tried changing autovacuum_analyze_scale_factor as well as setting job_batches table to auto analyze every 500 changes (by setting scale factor to 0 and threshold to 500), but I still keep running into that issue, sometimes

[PERFORM] Slow query even with aggressive auto analyze

2013-02-08 Thread Karolis Pocius
This query http://pgsql.privatepaste.com/359bed8e9e gets executed every 500 ms and normally completes really quickly http://explain.depesz.com/s/poVQ, but the more job_batches table (http://pgsql.privatepaste.com/eaf6d63fd2) gets used, the slower this query gets, to the point where it takes