Re: Inserts and bad performance

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Inserts and bad performance
Date: 2021-11-25 04:58:19
Message-ID: 19b129be-79c7-18ca-de3c-b6ca170e64cd@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/24/21 1:15 PM, Godfrin, Philippe E wrote:
[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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Sewell 2021-11-25 05:23:34 Re: Max connections reached without max connections reached
Previous Message Dilip Kumar 2021-11-25 04:36:59 Re: Max connections reached without max connections reached