Try running the entire set of statements within one transaction - that will
speed things up considerably.
You can also increase the number of buffers you are using, but that also
requires fiddling about with shared memory.
Chris
> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of MindTerm
> Sent: Friday, 14 December 2001 12:27 AM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] performance tuning in large function / transaction
>
>
> 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.
>
>
> M.T.
>
> __________________________________________________
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>