Re: need advice to tune postgresql

2018-02-23 Thread Laurenz Albe
Darius Pėža wrote: > I have issue that update queries is slow, I need some advice how improve > speed. I don't have much control to change queries. But I can change > postresql server configuration > > query example: > > UPDATE "project_work" SET "left" = ("project_work"."left" + 2) WHERE > ("

Re: need advice to tune postgresql

2018-02-23 Thread MichaelDBA
What caught my eye is the update count can be up to 10K. That means if autovacuum is not keeping up with this table, bloat may be increasing at a high pace leading to more page I/O which causes degraded performance. If the table has become bloated, you need to do a blocking VACUUM FULL on it