Re: Inserts and bad performance

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Inserts and bad performance
Дата
Msg-id 19b129be-79c7-18ca-de3c-b6ca170e64cd@gmail.com
обсуждение исходный текст
Ответ на Inserts and bad performance  ("Godfrin, Philippe E" <Philippe.Godfrin@nov.com>)
Ответы RE: [EXTERNAL] Re: Inserts and bad performance
Список pgsql-general
On 11/24/21 1:15 PM, Godfrin, Philippe E wrote:
@font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face {font-family:"Calibri Light"; panose-1:2 15 3 2 2 2 4 3 2 4;}@font-face {font-family:"Lucida Console"; panose-1:2 11 6 9 4 5 4 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; font-size:11.0pt; font-family:"Calibri",sans-serif;}span.EmailStyle19 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;}.MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif;}div.WordSection1 {page:WordSection1;}
[snip]
I dropped the unique index , rebuilt the other indexes and no change.

IMNSHO, this is the worst possible approach.  Drop everything except the unique index, and then (if possible) sort the input file by the unique key.   That'll increase buffered IO; otherwise, you're bopping all around the filesystem.

Using a bulk loader if possible would increase speeds

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: Max connections reached without max connections reached
Следующее
От: James Sewell
Дата:
Сообщение: Re: Max connections reached without max connections reached