random slow query - Mailing list pgsql-performance

From Sean Ma
Subject random slow query
Date
Msg-id 8c38075e0906290633k27a94661w7e1395fea41e00d9@mail.gmail.com
Whole thread Raw
Responses Re: random slow query  (Andres Freund <andres@anarazel.de>)
Re: random slow query  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: random slow query  (Mike Ivanov <mikei@activestate.com>)
List pgsql-performance
I have a table about 50 million rows. There are a few writers to pump
data into the table at the rate of 40000 row/hours. Most the time, the
SELECT is less than 100 ms. However sometime it is very slow, from 30
seconds to 500 seconds. The database is vacuum analyze regularly.

One months ago, this type of slow query happened about a few time per
day. But recently, the slow query happens more frequent at the rate of
once every 10 minutes or less. There seesm not relation to the
database loading or the type of query. If I manually execute these
query, it is returns in less than 1 seconds.

I just wonder where should I start to look?

Thanks

Shawn.

pgsql-performance by date:

Previous
From: Scott Mead
Date:
Subject: Re: Terrible Write Performance of a Stored Procedure
Next
From: Andres Freund
Date:
Subject: Re: random slow query