Skip site navigation (1) Skip section navigation (2)

Re: set autovacuum=off

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Alessandro Gagliardi <alessandro(at)path(dot)com>
Cc: Steve Crawford <scrawford(at)pinpointresearch(dot)com>, Thom Brown <thom(at)linux(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: set autovacuum=off
Date: 2012-02-23 19:07:07
Message-ID: 4F468E5B.2070009@squeakycode.net (view raw or flat)
Thread:
Lists: pgsql-performance
On 2/23/2012 12:38 PM, Alessandro Gagliardi wrote:

> Does analyze increase the efficiency of inserts or just selects? (I
> assumed the latter.) Obviously, I will need to analyze sometimes, but

That depends on if you have triggers that are doing selects.  But in 
general you are correct, analyze wont help inserts.

checkpoint_segments can help insert speed, what do you have that set to?

Also how you insert can make things faster too. (insert vs prepared vs COPY)

Also, if you have too many indexes on a table that can cause things to 
slow down.

Your IO layer needs to be fast too.  Have you watched vmstat and iostat?

Have you read up on synchronous_commit?

-Andy

In response to

Responses

pgsql-performance by date

Next:From: Steve CrawfordDate: 2012-02-23 19:26:55
Subject: Re: set autovacuum=off
Previous:From: Tom LaneDate: 2012-02-23 19:04:34
Subject: Re: Very long deletion time on a 200 GB database

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group