Re: inserting, index and no index - speed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zilch(at)home(dot)se
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: inserting, index and no index - speed
Date: 2001-06-10 22:41:12
Message-ID: 23582.992212872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

zilch(at)home(dot)se writes:
> I can't believe what a difference that made. How can it make it faster by
> putting it in a transaction? I thought that would make it slower. Like only
> a 100th of the time.

Everything is always a transaction in Postgres. If you don't say
begin/end, then there's an implicit begin and end around each individual
query. So your first set of tests were paying transaction commit
overhead for each insert.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message GH 2001-06-10 23:51:42 Re: Greetings, Thinking about converting
Previous Message zilch 2001-06-10 22:11:09 Re: inserting, index and no index - speed