pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stéphane KANSCHINE <stephane@hexack.fr>
To: David Modica <davidmo@imaginesoftware.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: inserts take longer and longer
Date: Tue, 20 Nov 2018 17:41:03 +0100
Message-ID: <20181120164103.plefj3qzvgt6pd53@office.hexack.fr> (raw)
In-Reply-To: <9a645d6c8749483c90f5f109889ea8ce@imaginesoftware.com>
References: <9a645d6c8749483c90f5f109889ea8ce@imaginesoftware.com>

Le mar. 20 nov., vers 15:55, David Modica exprimait :

> hi all. 

Hi,

> I hope this is the correct way to get help from the list.
[...]
> we have a developer who is doing batch inserts 20 at a time and each
> subsequent batch is taking longer to the point where it is a
> critical problem. I recently changed the out of the box config to
> see if that would help but it hasn’t:
[...]
> any direction as to what to look at would be appreciated.

When you're doing bulk insert, it's a good practice to drop index and
recreate it after.

Regards,
-- 
Stéphane KANSCHINE - https://www.hexack.fr./ - https://www.nuajik.io./
@ stephane@hexack.fr
  +33 6 64 31 72 52




view thread (5+ messages)  latest in thread

Message-ID: <20181120164103.plefj3qzvgt6pd53@office.hexack.fr>
Permalink:  ../20181120164103.plefj3qzvgt6pd53@office.hexack.fr/
Also on:    postgresql.org/message-id/20181120164103.plefj3qzvgt6pd53@office.hexack.fr

 · 

reply

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-admin@postgresql.org
  Cc: stephane@hexack.fr, davidmo@imaginesoftware.com
  Subject: Re: inserts take longer and longer
  In-Reply-To: <20181120164103.plefj3qzvgt6pd53@office.hexack.fr>
  References: <9a645d6c8749483c90f5f109889ea8ce@imaginesoftware.com> <20181120164103.plefj3qzvgt6pd53@office.hexack.fr>

* 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