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: Thu, 13 Dec 2001 22:42:20 -0800 (PST)
Message-ID: <20011213224101.U8121-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20011214033428.93468.qmail@web20203.mail.yahoo.com>

On Thu, 13 Dec 2001, MindTerm wrote:

> Hi all,
>
>   I will try to assign more memory to shared memory,
> say 50M ~ 100M .
>
>   I am runing something like that ..
>
>   cursor loop 1
>    cursor loop 2
>     cursor loop 3
>      tmp = primary key
>      delete tmp ....
>      insert tmp ....
>     end loop 3
>    end loop 2
>   end loop 3
>
> will delete and insert record with same primary key
> within a transaction reduce the performance ?

Hmm, that might, is the tmp different for each
combination of 1,2 and 3?  I'm not really sure.
You might also want to watch the backend's memory
usage during the call to see how big it gets just
to make sure there's not something bad happening.





view thread (23+ messages)  latest in thread

Message-ID: <20011213224101.U8121-100000@megazone23.bigpanda.com>
Permalink:  ../20011213224101.U8121-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011213224101.U8121-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: <20011213224101.U8121-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