Re: Very long SQL strings

Поиск
Список
Период
Сортировка
От Steven Flatt
Тема Re: Very long SQL strings
Дата
Msg-id 357fa7590706211309w3bc072s321e546f4c5fd976@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Very long SQL strings  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-performance
Thanks everyone for your responses.  I don't think it's realistic to change our application infrastructure to use COPY from a stream at this point.  It's good to know that multi-row-VALUES is good up into the thousands of rows (depending on various things, of course).  That's a good enough answer for what I was looking for and we can revisit this if performance does start to hurt.

On 6/21/07, Andreas Kretschmer <akretschmer@spamfence.net> wrote:
I guess you can obtain the same if you pack all INSERTs into one
transaction.
 
Well the 20% gain I referred to was when all individual INSERTs were within one transaction.  When each INSERT does its own commit, it's significantly slower.
 
Steve
 

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Database-wide VACUUM ANALYZE
Следующее
От: "Steven Flatt"
Дата:
Сообщение: Re: Database-wide VACUUM ANALYZE