Re: Inserts and bad performance - Mailing list pgsql-general

From Ron
Subject Re: Inserts and bad performance
Date
Msg-id 19b129be-79c7-18ca-de3c-b6ca170e64cd@gmail.com
Whole thread Raw
In response to Inserts and bad performance  ("Godfrin, Philippe E" <Philippe.Godfrin@nov.com>)
Responses RE: [EXTERNAL] Re: Inserts and bad performance  ("Godfrin, Philippe E" <Philippe.Godfrin@nov.com>)
List 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 by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Max connections reached without max connections reached
Next
From: James Sewell
Date:
Subject: Re: Max connections reached without max connections reached