Re: RE: [EXTERNAL] Re: Inserts and bad performance

Поиск
Список
Период
Сортировка
Искать
От
Ali .
Тема
Re: RE: [EXTERNAL] Re: Inserts and bad performance
Дата
Msg-id
1638252080.149803539@f520.i.mail.ru
Ответ на
Список
Дерево обсуждения
Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: Inserts and bad performance Tom Lane <tgl@sss.pgh.pa.us>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: [EXTERNAL] Re: Inserts and bad performance David Rowley <dgrowleyml@gmail.com>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: Inserts and bad performance Ron <ronljohnsonjr@gmail.com>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: [EXTERNAL] Re: Inserts and bad performance Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Inserts and bad performance Kenneth Marshall <ktm@rice.edu>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: Inserts and bad performance Gavin Roy <gavinr@aweber.com>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>
Re: RE: [EXTERNAL] Re: Inserts and bad performance Ali . <mp.x@bk.ru>
Re: [EXTERNAL] Re: Inserts and bad performance Michael Lewis <mlewis@entrata.com>
RE: [EXTERNAL] Re: Inserts and bad performance "Godfrin, Philippe E" <Philippe.Godfrin@nov.com>

Ok, thanks

--
Sent from Mail.ru app for Android

Wednesday, 24 November 2021, 11:28pm +03:00 from Godfrin, Philippe E philippe.godfrin@nov.com:

The notion of COPY blocks and asynchronously is very interesting

 

From: Gavin Roy <gavinr@aweber.com>
Sent: Wednesday, November 24, 2021 1:50 PM
To: Godfrin, Philippe E <Philippe.Godfrin@nov.com>
Cc: pgsql-general@lists.postgresql.org
Subject: [EXTERNAL] Re: Inserts and bad performance

 

 

 

 

On Wed, Nov 24, 2021 at 2:15 PM Godfrin, Philippe E <Philippe.Godfrin@nov.com> wrote:

Greetings

I am inserting a large number of rows, 5,10, 15 million. The python code commits every 5000 inserts. The table has partitioned children.

 

On the Python client side, if you're using psycopg, you should consider using using COPY instead of INSERT if you're not:

 

 

And if using psycopg2, execute_batch might be of value:

 

 

Regards,

 

Gavin

 

 

В списке pgsql-general по дате отправления
От: Michael Paquier
Дата:
Сообщение: Re: split postgresql logfile
От: Saurav Sarkar
Дата:
Сообщение: Database Scalability
FAQ