Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f16Cvpx71801 for ; Tue, 6 Feb 2001 07:57:51 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from gull.prod.itd.earthlink.net (gull.prod.itd.earthlink.net [207.217.121.85]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f164pMx10651; Mon, 5 Feb 2001 23:51:22 -0500 (EST) (envelope-from kthangavelu@earthlink.net) Received: from linux (CBL-kthangavelu-a.hs.earthlink.net [24.41.14.72]) by gull.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with SMTP id UAA10150; Mon, 5 Feb 2001 20:51:05 -0800 (PST) Content-Type: text/plain; charset="iso-8859-1" From: ender To: Alfred Perlstein , Steve Wilmarth Subject: Re: Longer and longer updates Date: Mon, 5 Feb 2001 21:52:51 -0800 X-Mailer: KMail [version 1.2] Cc: pgsql-general@postgresql.org, pgsql-admin@postgresql.org References: <20010205125238.A26076@fw.wintelcom.net> In-Reply-To: <20010205125238.A26076@fw.wintelcom.net> MIME-Version: 1.0 Message-Id: <01020521525101.00635@linux> Content-Transfer-Encoding: 8bit X-Archive-Number: 200102/48 X-Sequence-Number: 648 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.