Re: Disabling/Enabling index before bulk loading

From: Vick Khera <vivek(at)khera(dot)org>
To: PG mailing List <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Disabling/Enabling index before bulk loading
Date: 2018-07-10 18:38:11
Message-ID: CALd+dcfqWoDtX-D234p0Lh2H9eZb99qeeh3qFyg7vuVpsq8SAg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jul 10, 2018 at 1:13 PM, Ravi Krishna <srkrishna(at)yahoo(dot)com> wrote:

> >
> > Did you include the time to CREATE INDEX after the COPY or is the 1:14
> only for the COPY stage?
>
> Yes.
>
> Time taken to load 47 mil rows with all 16 indexes intact: 14+ hrs
> Time taken to load the same after dropping index and then loading and
> finally creating 16 indexes: 1 hr 40 min
>

https://fle.github.io/temporarily-disable-all-indexes-of-a-postgresql-table.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2018-07-10 19:25:53 Re: Disabling/Enabling index before bulk loading
Previous Message Patrick Hemmer 2018-07-10 18:37:57 max_standby_streaming_delay not enforced