Re: [psycopg] speed concerns with executemany()

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: [psycopg] speed concerns with executemany()
Дата
Msg-id 81565B0C-A1A1-4EC9-A733-3D252C9E98C2@thebuild.com
обсуждение исходный текст
Ответ на Re: [psycopg] speed concerns with executemany()  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: [psycopg] speed concerns with executemany()  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список psycopg
> On Dec 23, 2016, at 18:55, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> Alright that I get. Still the practical outcome is each INSERT is being done in a transaction (an implicit one) so
thetransaction overhead comes into play. Or am I missing something? 

Nope, not missing a thing.  The theory (and it is only that) is that when they do the .executemany(), each of those
INSERTspays the transaction overhead, while if they do one big INSERT, just that one statement does. 

--
-- Christophe Pettus
   xof@thebuild.com



В списке psycopg по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: [psycopg] speed concerns with executemany()
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: [psycopg] speed concerns with executemany()