Re: Performance of update

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "sam *EXTERN*" <sam(dot)mahindrakar(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Performance of update
Date: 2008-03-27 12:28:20
Message-ID: D960CB61B694CF459DCFB4B0128514C201ED1B78@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

sam wrote:
> Iam trying to update a database table with approx 45000 rows. Iam not
> updating all rows at a time. Iam updating 60 rows at a given time for
> example. and this is happening in a FOR LOOP. A function that has the
> update statements is called within the loop.
>
> The updates take too long.....is postgres slow in doing updates on
> large tables or is it because of the function call within the loop???

Could you post the functions and the EXPLAIN output
for the SQL statements in the functions?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma 2008-03-27 12:40:33 Re: casting from integer to boolean
Previous Message Pettis, Barry 2008-03-27 12:25:10 Re: Using tables in other PostGreSQL database