Re: performance tuning in large function / transaction

From: MindTerm <mindterm(at)yahoo(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: performance tuning in large function / transaction
Date: 2001-12-14 02:46:52
Message-ID: 20011214024652.79128.qmail@web20210.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I am writing a function (plpgsql) which equals to a
single transaction transaction in postgresql ( as I
known ). So I think that it is not a autocommmit mode.

I have add following lines in postgresql.conf.

postgresql.conf:
====================
shared_buffers = 640
wal_buffers = 80

M.T.

--- Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
wrote:
> On Thu, 13 Dec 2001, MindTerm wrote:
>
> > Hi all,
> >
> > I am writing a large function which perform more
> > than 2000 modify statements ( delete / insert ) .
> The
> > execution time of this function is not acceptable.
> How
> > can I config postgresql ( in postgresql.conf ?? )
> so
> > that the performance will be better ? The machine
> > runing postgresql have spare memory and harddisk
> > space.
>
> It's hard without more information, is the function
> like
> an internal function or do you mean an external one?
> In the latter case, the first thing to do is make
> sure you're not in autocommit (ie, you've begun a
> transaction) since otherwise you're doing 2000
> separate transactions.
> The settings that are the first to look at in the
> postgresql.conf are shared_buffers and sort_mem.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-12-14 03:02:05 Re: performance tuning in large function / transaction
Previous Message Christopher Kings-Lynne 2001-12-14 02:09:11 Re: performance tuning in large function / transaction