Re: Chaining inserts ... This would be cool - Mailing list pgsql-general

From Chris Angelico
Subject Re: Chaining inserts ... This would be cool
Date
Msg-id CAPTjJmpxA5AB-j+OvoYJGFb=AGLrEsef7h4AHSVs9F08SvqzMg@mail.gmail.com
Whole thread Raw
In response to Re: Chaining inserts ... This would be cool  (David Fetter <david@fetter.org>)
List pgsql-general
On Tue, Apr 24, 2012 at 11:30 AM, David Fetter <david@fetter.org> wrote:
> On Tue, Apr 24, 2012 at 08:12:10AM +1000, Chris Angelico wrote:
>> Of course, the question I never asked (never bothered to, really)
>> was: Is it really any better than simply doing the first insert and
>> retrieving the ID in my application? :)
>
> One crucial difference is the number of round trips to the database.

Yeah, which gives it the potential to be faster, but I never actually
measured anything. Would be curious to know if it becomes better at X
table size, or something.

ChrisA

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: Chaining inserts ... This would be cool
Next
From: Nick Apperson
Date:
Subject: Re: Chaining inserts ... This would be cool