Re: why autocommit mode is slow?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: why autocommit mode is slow?
Date: 2011-04-08 14:56:28
Message-ID: 20110408145628.GY13162@shinkuro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Apr 07, 2011 at 10:59:50PM +0200, Szymon Guz wrote:
> Hi,
> this is maybe a stupid question, but I don't know how to explain to my
> coworkers why performing many inserts in autocommit mode is so much slower
> than making all of them in one transaction.
>
> Why is that so slow?

If you do BEGIN; [statement]; COMMIT; one after another, is that as
slow as autocommit? (My bet is yes.)

A

--
Andrew Sullivan
ajs(at)crankycanuck(dot)ca

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2011-04-08 14:56:53 Re: Using Function returning setof record in JOIN
Previous Message Katherine Jeschke 2011-04-08 14:50:20 Surge 2011 CFP Deadline Extended