pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre C <lists@peufeu.com>
To: Ryan Wexler <ryan@iridiumsuite.com>
To: pgsql-performance@postgresql.org
Subject: Re: performance on new linux box
Date: Thu, 08 Jul 2010 10:56:02 +0200
Message-ID: <op.vfiofo1leorkce@apollo13> (raw)
In-Reply-To: <AANLkTinVrej5r_uF3As3mF8BW4CYgLGiw2-v2HORsqjM@mail.gmail.com>
References: <AANLkTinVrej5r_uF3As3mF8BW4CYgLGiw2-v2HORsqjM@mail.gmail.com>


> On the new system the bulk loads are extremely slower than on the  
> previous
> machine and so are the more complex queries.  The smaller transactional
> queries seem comparable but i had expected an improvement.  Performing a  
> db
> import via psql -d databas -f dbfile illustrates this problem.

If you use psql (not pg_restore) and your file contains no BEGIN/COMMIT  
statements, you're probably doing 1 transaction per SQL command. As the  
others say, if the old box lied about fsync, and the new one doesn't,  
performance will suffer greatly. If this is the case, remember to do your  
imports the proper way : either use pg_restore, or group inserts in a  
transaction, and build indexes in parallel.



view thread (50+ messages)  latest in thread

Message-ID: <op.vfiofo1leorkce@apollo13>
Permalink:  ../op.vfiofo1leorkce@apollo13/
Also on:    postgresql.org/message-id/op.vfiofo1leorkce@apollo13

 · 

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: lists@peufeu.com, ryan@iridiumsuite.com
  Subject: Re: performance on new linux box
  In-Reply-To: <op.vfiofo1leorkce@apollo13>

* 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