Re: update slows down in pl/pgsql function - Mailing list pgsql-general

From Stephan Szabo
Subject Re: update slows down in pl/pgsql function
Date
Msg-id 20031216155342.J28271@megazone.bigpanda.com
Whole thread Raw
In response to update slows down in pl/pgsql function  (Jenny Zhang <jenny@osdl.org>)
Responses Re: update slows down in pl/pgsql function  (Jenny Zhang <jenny@osdl.org>)
List pgsql-general
On Tue, 16 Dec 2003, Jenny Zhang wrote:

> I have stored procedure written in pl/pgsql which takes about 13 seconds
> to finish.  I was able to identify that the slowness is caused by one
> update SQL:
>
> UPDATE shopping_cart SET sc_sub_total=sc_subtotal, sc_date=now()
> WHERE sc_id=sc_id;

Umm, is that exactly the condition you're using? Isn't that going to
update the entire table?

pgsql-general by date:

Previous
From: Jenny Zhang
Date:
Subject: update slows down in pl/pgsql function
Next
From: Jenny Zhang
Date:
Subject: Re: update slows down in pl/pgsql function