pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: MindTerm <mindterm@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: performance tuning in large function / transaction
Date: Fri, 14 Dec 2001 00:40:35 -0800 (PST)
Message-ID: <20011214003753.X8954-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20011214080549.38940.qmail@web20207.mail.yahoo.com>

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)





view thread (23+ messages)  latest in thread

Message-ID: <20011214003753.X8954-100000@megazone23.bigpanda.com>
Permalink:  ../20011214003753.X8954-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011214003753.X8954-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, mindterm@yahoo.com
  Subject: Re: performance tuning in large function / transaction
  In-Reply-To: <20011214003753.X8954-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox