pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ender <kthangavelu@earthlink.net>
To: Alfred Perlstein <bright@wintelcom.net>
To: Steve Wilmarth <swilmarth@eknow.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: Longer and longer updates
Date: Mon, 5 Feb 2001 21:52:51 -0800
Message-ID: <01020521525101.00635@linux> (raw)
In-Reply-To: <20010205125238.A26076@fw.wintelcom.net>
References: <Pine.LNX.4.21.0102051532120.8482-100000@beaver.kelleywilmarth.com>
	<20010205125238.A26076@fw.wintelcom.net>

if you're doing updates in a single transaction, you'll realize speed gains 
by distributing the updates into multiple transactions. postgres won't have 
to keep multiple copies that way.

hth

kapil


> >
> > 3) executed this statement tons of times:
> >
> >    update test set data=1234 where key=1
> >
> > Here are the results -- it's pretty discouraging, I hope I'm making some
> > simple mistake, or maybe this is expected behavior for some reason?
> >
> > After this many updates        ...it took this long for 1000 more updates
> > -----------------------        ------------------------------------------
> >         0                                   10880 ms
> >       5,000                                 10549 ms
> >      10,000                                 17380 ms
> >      15,000                                 20040 ms
> >      20,000                                 20060 ms
> >      25,000                                 20589 ms
> >      30,000                                 30749 ms
> >      35,000                                 30350 ms
> >      40,000                                 30910 ms
> >      45,000                                 37570 ms
> >      50,000                                 40379 ms
> >
> > This seems to be independent of starting and stopping my client and the
> > postmaster, running vacuum, praying, etc.  I'm on RedHat6.2
> > running with the 7.1beta4 rpms.



view thread (4+ messages)  latest in thread

Message-ID: <01020521525101.00635@linux>
Permalink:  ../01020521525101.00635@linux/
Also on:    postgresql.org/message-id/01020521525101.00635@linux

 · 

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-admin@postgresql.org
  Cc: kthangavelu@earthlink.net, bright@wintelcom.net, swilmarth@eknow.com, pgsql-general@postgresql.org
  Subject: Re: Longer and longer updates
  In-Reply-To: <01020521525101.00635@linux>
  References: <Pine.LNX.4.21.0102051532120.8482-100000@beaver.kelleywilmarth.com> <20010205125238.A26076@fw.wintelcom.net> <01020521525101.00635@linux>

* 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