pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna@outlook.com>
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 16:52:01 +0000
Message-ID: <BYAPR01MB384810591FF49526B5FC486FB9D90@BYAPR01MB3848.prod.exchangelabs.com> (raw)
In-Reply-To: <9a645d6c8749483c90f5f109889ea8ce@imaginesoftware.com>
References: <9a645d6c8749483c90f5f109889ea8ce@imaginesoftware.com>

> 
> 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:
> 

I recollect reading something few years ago, but not able to place my finger on the issue. IIRC it was something to do with the inserting session creating a HOT bloat because vaccum could not do anything on that live session.  I will try to search for that post.  But the symptoms were similar to yours.  Initially good performance and then getting slower and slower.

Q: Is it straight insert or you do select or updates also along with insert.

view thread (5+ messages)  latest in thread

Message-ID: <BYAPR01MB384810591FF49526B5FC486FB9D90@BYAPR01MB3848.prod.exchangelabs.com>
Permalink:  ../BYAPR01MB384810591FF49526B5FC486FB9D90@BYAPR01MB3848.prod.exchangelabs.com/
Also on:    postgresql.org/message-id/BYAPR01MB384810591FF49526B5FC486FB9D90@BYAPR01MB3848.prod.exchangelabs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: srkrishna@outlook.com, davidmo@imaginesoftware.com
  Subject: Re: inserts take longer and longer
  In-Reply-To: <BYAPR01MB384810591FF49526B5FC486FB9D90@BYAPR01MB3848.prod.exchangelabs.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