Re: performance tuning in large function / transaction

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: MindTerm <mindterm(at)yahoo(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: performance tuning in large function / transaction
Date: 2001-12-14 08:40:35
Message-ID: 20011214003753.X8954-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Anil Kumar Narule 2001-12-14 08:42:52 Display of Japanese character
Previous Message MindTerm 2001-12-14 08:05:49 Re: performance tuning in large function / transaction