pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Francisco Reyes <lists@stringsutils.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: Inserts optimization?
Date: Tue, 18 Apr 2006 11:02:34 +0200
Message-ID: <4444AB2A.5080607@logix-tt.com> (raw)
In-Reply-To: <cone.1145031012.290269.26335.1000@zoraida.natserv.net>
References: <cone.1144953939.190214.95544.5001@35st-server.simplicato.com>
	<200604141400.38982.mcousin@sigma.fr>
	<cone.1145031012.290269.26335.1000@zoraida.natserv.net>

Hi, Francisco,

Francisco Reyes wrote:

> I only wonder what is safer.. using a second or two in commit_delay or
> using fsync = off.. Anyone cares to comment?

It might be that you misunderstood commit_delay. It will not only delay
the disk write, but also block your connnection until the write actually
is performed.

It will rise the throughput in multi-client scenarios, but will also
rise the latency, and it will absolutely bring no speedup in
single-client scenarios.

It does not decrease safety (in opposite to fsync=off), data will be
consistent, and any application that has successfully finished a commit
can be shure their data is on the platters.[1]

HTH,
Markus

[1] As long as the platters don't lie, but that's another subject.

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



view thread (39+ messages)  latest in thread

Message-ID: <4444AB2A.5080607@logix-tt.com>
Permalink:  ../4444AB2A.5080607@logix-tt.com/
Also on:    postgresql.org/message-id/4444AB2A.5080607@logix-tt.com

 · 

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: schabi@logix-tt.com, lists@stringsutils.com
  Subject: Re: Inserts optimization?
  In-Reply-To: <4444AB2A.5080607@logix-tt.com>

* 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