Re: performance tuning in large function / transaction - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: performance tuning in large function / transaction
Date
Msg-id 20011214003753.X8954-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: performance tuning in large function / transaction  (MindTerm <mindterm@yahoo.com>)
Responses Re: performance tuning in large function / transaction
List pgsql-sql
On Fri, 14 Dec 2001, MindTerm wrote:

> Hi all,
>
>   senario:
>
>   cursor 1 loop ( e.g. find student id )
>    cursor 2 loop ( e.g. find courses of this student )
>     cursor 3 loop ( e.g. update course information )
>       delele course detail ...
>       or
>       delete course detail ... ( same primary key )
>       insert course detail ... ( same primary key )
>     end loop 3
>    end loop 2
>   end loop 1
>
>   It did 75 delete actions 140 update actions ( delete
> and insert ). The process time was about 5-6 minutes
> while oracle was 10 seconds to 20 seconds .

Can you send the actual function and table schema for the associated
tables and sizes of the tables involved (I figure the data itself is
probably not available, but we may be able to see what's going on then)




pgsql-sql by date:

Previous
From: MindTerm
Date:
Subject: Re: performance tuning in large function / transaction
Next
From: MindTerm
Date:
Subject: Re: performance tuning in large function / transaction