pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Colson <andy@squeakycode.net>
To: Alessandro Gagliardi <alessandro@path.com>
Cc: Steve Crawford <scrawford@pinpointresearch.com>
Cc: Thom Brown <thom@linux.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: set autovacuum=off
Date: Thu, 23 Feb 2012 13:07:07 -0600
Message-ID: <4F468E5B.2070009@squeakycode.net> (raw)
In-Reply-To: <CAAB3BBKU4f3QqNMmjYeuZFkOhp6iP+2aMhLWODQBEMQt-+yCnA@mail.gmail.com>
References: <CAAB3BBLsZ94tTzaiTZrdpK+2m1waj8=VL31aPvOGFJ7oAGCHiQ@mail.gmail.com>
	<CAA-aLv4KL4atuaqJFi3BBWiRsWiJOVQZMk65JYw=H8ezZV6O8g@mail.gmail.com>
	<4F4658CB.3030505@squeakycode.net>
	<CAAB3BBK-nzheaG4Ju0snB7b3hqc2pZ+wV6vv9BPt81_k_cLcWw@mail.gmail.com>
	<4F467EDF.5090708@pinpointresearch.com>
	<CAAB3BBKU4f3QqNMmjYeuZFkOhp6iP+2aMhLWODQBEMQt-+yCnA@mail.gmail.com>

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



view thread (22+ messages)  latest in thread

Message-ID: <4F468E5B.2070009@squeakycode.net>
Permalink:  ../4F468E5B.2070009@squeakycode.net/
Also on:    postgresql.org/message-id/4F468E5B.2070009@squeakycode.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andy@squeakycode.net, alessandro@path.com, scrawford@pinpointresearch.com, thom@linux.com
  Subject: Re: set autovacuum=off
  In-Reply-To: <4F468E5B.2070009@squeakycode.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox