Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f15Kqfx68431; Mon, 5 Feb 2001 15:52:41 -0500 (EST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f15KqcZ09940; Mon, 5 Feb 2001 12:52:38 -0800 (PST) Date: Mon, 5 Feb 2001 12:52:38 -0800 From: Alfred Perlstein To: Steve Wilmarth Cc: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [GENERAL] Longer and longer updates Message-ID: <20010205125238.A26076@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from swilmarth@eknow.com on Mon, Feb 05, 2001 at 03:36:17PM -0500 X-Archive-Number: 200102/36 X-Sequence-Number: 636 * Steve Wilmarth [010205 12:50] wrote: > > Hi all- > > In doing some stress testing I noticed that our database was slowing > down significantly after doing the same update repeatedly on a table > with no indexes, so I tried this: > > 1) created an empty database > > 2) made a simple table with a single row: > > create table test (key int4, data int4); > insert into test values (1, 0); > > 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. > > Anyone know what's going on here? You're not vacuuming. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk."