From: Ravi Krishna <srkrishna@yahoo.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: PG mailing List <pgsql-general@lists.postgresql.org>
Subject: Re: Disabling/Enabling index before bulk loading
Date: Tue, 10 Jul 2018 13:13:53 -0400
Message-ID: <E6BC317E-76F8-43C7-B735-429797952B28@yahoo.com> (raw)
In-Reply-To: <97b32f41-a133-d9d1-2dfa-0289038b25bf@aklaver.com>
References: <67D408BB-5BF7-4607-A730-6F262F65811A@yahoo.com>
<97b32f41-a133-d9d1-2dfa-0289038b25bf@aklaver.com>
>
> 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
Frankly I am surprised by this staggering difference.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: srkrishna@yahoo.com, adrian.klaver@aklaver.com
Subject: Re: Disabling/Enabling index before bulk loading
In-Reply-To: <E6BC317E-76F8-43C7-B735-429797952B28@yahoo.com>
References: <67D408BB-5BF7-4607-A730-6F262F65811A@yahoo.com> <97b32f41-a133-d9d1-2dfa-0289038b25bf@aklaver.com> <E6BC317E-76F8-43C7-B735-429797952B28@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox