Re: database slowdown while a lot of inserts occur - Mailing list pgsql-performance

From Bob Lunney
Subject Re: database slowdown while a lot of inserts occur
Date
Msg-id 1333049228.99470.YahooMailNeo@web162801.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: database slowdown while a lot of inserts occur  ("Campbell, Lance" <lance@illinois.edu>)
Responses Re: database slowdown while a lot of inserts occur  (Andrew Dunstan <andrew@dunslane.net>)
Re: database slowdown while a lot of inserts occur  (Tomas Vondra <tv@fuzzy.cz>)
List pgsql-performance
Lance,

May small inserts cause frequent fsyncs.  Is there any way those small inserts can be batched into some larger sets of inserts that use copy to perform the load?

Bob Lunney


From: "Campbell, Lance" <lance@illinois.edu>
To: "Campbell, Lance" <lance@illinois.edu>; "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Sent: Thursday, March 29, 2012 1:02 PM
Subject: Re: [PERFORM] database slowdown while a lot of inserts occur

I forgot to mention that the slowdown in particular for other applications is when they are trying to insert or update tables unrelated to the application mentioned in my prior application that does the massive small inserts.
 
 
Thanks,
 
Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382
 
From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Campbell, Lance
Sent: Thursday, March 29, 2012 12:59 PM
To: pgsql-performance@postgresql.org
Subject: [PERFORM] database slowdown while a lot of inserts occur
 
PostgreSQL 9.0.x
We have around ten different applications that use the same database.  When one particular application is active it does an enormous number of inserts.  Each insert is very small.  During this time the database seems to slow down in general.  The application in question is inserting into a particular table that is not used by the other applications.
 
1)      What should I do to confirm that the database is the issue and not the applications?
2)      How can I identify where the bottle neck is occurring if the issue happens to be with the database?
 
I have been using PostgreSQL for eight years.  It is an amazing database.
 
Thanks,
 
Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382
 


pgsql-performance by date:

Previous
From: Deron
Date:
Subject: Re: database slowdown while a lot of inserts occur
Next
From: Andrew Dunstan
Date:
Subject: Re: database slowdown while a lot of inserts occur