pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Ofer Israeli <oferi@checkpoint.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Cc: Netta Kabala <nettak@checkpoint.com>
Cc: Olga Vingurt <olgavi@checkpoint.com>
Subject: Re: Insertions slower than Updates?
Date: Mon, 20 Feb 2012 13:29:43 -0600
Message-ID: <4F424AC70200002500045902@gw.wicourts.gov> (raw)
In-Reply-To: <217DDBC2BB1E394CA9E7446337CBDEF20102C05A6A3C@il-ex01.ad.checkpoint.com>
References: <217DDBC2BB1E394CA9E7446337CBDEF20102C05A6A37@il-ex01.ad.checkpoint.com>
	<4F4246E702000025000458F7@gw.wicourts.gov>
	<217DDBC2BB1E394CA9E7446337CBDEF20102C05A6A3C@il-ex01.ad.checkpoint.com>

Ofer Israeli <oferi@checkpoint.com> wrote:
> Kevin Grittner wrote:
>> Ofer Israeli <oferi@checkpoint.com> wrote:
>>> Anyone have any ideas on why the empty db is giving worse
>>> results??
>> 
>> Besides the HOT updates being fast, there is the issue of having
>> space already allocated and ready for the database to use, rather
>> than needing to make calls to the OS to create and extend files
>> as space is needed.   
> 
> I thought about this direction as well, but on UPDATES, some of
> them will need to ask the OS for more space anyhow at least at the
> beginning of the run, additional pages will be needed.  Do you
> expect that the OS level allocations are so expensive as to show
> an ~%40 increase of processing time in average?
 
Gut feel, 40% does seem high for just that; but HOT updates could
easily account for that, especially since you said that the tables
are "heavily indexed".  That is, as long as there are enough updates
which don't modify indexed columns.
 
-Kevin



view thread (7+ messages)  latest in thread

Message-ID: <4F424AC70200002500045902@gw.wicourts.gov>
Permalink:  ../4F424AC70200002500045902@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F424AC70200002500045902@gw.wicourts.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, oferi@checkpoint.com, nettak@checkpoint.com, olgavi@checkpoint.com
  Subject: Re: Insertions slower than Updates?
  In-Reply-To: <4F424AC70200002500045902@gw.wicourts.gov>
  References: <217DDBC2BB1E394CA9E7446337CBDEF20102C05A6A37@il-ex01.ad.checkpoint.com> <4F4246E702000025000458F7@gw.wicourts.gov> <217DDBC2BB1E394CA9E7446337CBDEF20102C05A6A3C@il-ex01.ad.checkpoint.com> <4F424AC70200002500045902@gw.wicourts.gov>

* 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