Re: UPDATE slow - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: UPDATE slow
Date
Msg-id Pine.LNX.4.21.0302050100040.20150-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to Re: UPDATE slow  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: UPDATE slow  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
On Tue, 4 Feb 2003, Stephan Szabo wrote:

>
> On Wed, 5 Feb 2003, Nigel J. Andrews wrote:
>
> > On Tue, 4 Feb 2003, Stephan Szabo wrote:
> >
> > > On Tue, 4 Feb 2003, John Smith wrote:
> > >
> > > > That works - updates on foo take about 1.4 seconds. I dropped all the
> > > > indexes and fk's on stats and updates there take about 2.8 seconds.
> > > > These are on the cygwin machine.
> > >
> > > The 2.8 seconds is on stats after dropping the fks and indexes?  But
> > > it didn't help on the linux box?
>
>...
>
> Yeah, but I thought he'd said that on the linux box, even after dropping
> indexes and fks it was taking 5-10 seconds.

You miss remembered :)

>
> I'm also a bit confused because I'm not sure he's getting 2.8 seconds to
> update all the records or just a single record.

I'm pretty sure the command originally quoted was an unconstrained update
setting a constant value, i.e. all the rows. I had to change my test because
I'd setup unique indexes so couldn't do the constant value bit.


--
Nigel Andrews



pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: UPDATE slow
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: [INTERFACES] DBI driver and transactions