Re: Chaining inserts ... This would be cool

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема Re: Chaining inserts ... This would be cool
Дата
Msg-id CAPTjJmpxA5AB-j+OvoYJGFb=AGLrEsef7h4AHSVs9F08SvqzMg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Chaining inserts ... This would be cool  (David Fetter <david@fetter.org>)
Список 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 по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Chaining inserts ... This would be cool
Следующее
От: Nick Apperson
Дата:
Сообщение: Re: Chaining inserts ... This would be cool