[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: database slowdown while a lot of inserts occur



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@xxxxxxxxxxxx>
To: "Campbell, Lance" <lance@xxxxxxxxxxxx>; "pgsql-performance@xxxxxxxxxxxxxx" <pgsql-performance@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx [mailto:pgsql-performance-owner@xxxxxxxxxxxxxx] On Behalf Of Campbell, Lance
Sent: Thursday, March 29, 2012 12:59 PM
To: pgsql-performance@xxxxxxxxxxxxxx
Subject: 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
 



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Home]     [Yosemite]

Powered by Linux