pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Nolan <nolan@gw.tssi.com>
To: chris.kratz@vistashare.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Long running queries degrade performance
Date: Fri, 16 Apr 2004 10:46:02 -0500 (CDT)
Message-ID: <200404161546.i3GFk3p3010490@gw.tssi.com> (raw)
In-Reply-To: <200404161128.00851.chris.kratz@vistashare.com>

> We have a web app with a postgres backend.  Most queries have subsecond 
> response times through the web even with high usage.  Every once in awhile 
> someone will run either an ad-hoc query or some other long running db 
> process.  

Are you sure it is postgres where the delay is occurring?  I ask this
because I also have a web-based front end to postgres, and while most of
the time the queries respond in about a second every now and then I see
one that takes much longer, sometimes 10-15 seconds.

I've seen this behavior on both my development system and on the
production server.  

The same query a while later might respond quickly again.

I'm not sure where to look for the delay, either, and it is intermittent
enough that I'm not even sure what monitoring techniques to use.
--
Mike Nolan



view thread (8+ messages)  latest in thread

Message-ID: <200404161546.i3GFk3p3010490@gw.tssi.com>
Permalink:  ../200404161546.i3GFk3p3010490@gw.tssi.com/
Also on:    postgresql.org/message-id/200404161546.i3GFk3p3010490@gw.tssi.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-performance@postgresql.org
  Cc: nolan@gw.tssi.com, chris.kratz@vistashare.com
  Subject: Re: Long running queries degrade performance
  In-Reply-To: <200404161546.i3GFk3p3010490@gw.tssi.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