RE: inserts take longer and longer

From: David Modica <davidmo(at)imaginesoftware(dot)com>
To: Ravi Krishna <srkrishna(at)outlook(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: RE: inserts take longer and longer
Date: 2018-11-21 14:04:39
Message-ID: decce8b9ed584604894fa18ba2779be5@imaginesoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

straight insert doing batches of 100. dropping the index to see if that helps.

-----Original Message-----
From: Ravi Krishna <srkrishna(at)outlook(dot)com>
Sent: Tuesday, November 20, 2018 11:52 AM
To: David Modica <davidmo(at)imaginesoftware(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: inserts take longer and longer

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Don Seiler 2018-11-21 14:53:41 Re: query performance after database rename
Previous Message David Modica 2018-11-21 14:03:33 RE: inserts take longer and longer