pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Query performing very bad and sometimes good
Date: Wed, 6 Aug 2014 07:04:32 -0700
Message-ID: <1407333872.37969.YahooMailNeo@web122303.mail.ne1.yahoo.com> (raw)
In-Reply-To: <VisenaEmail.24.fd3487f9d1329566.147a8117731@tc7-on>
References: <VisenaEmail.24.fd3487f9d1329566.147a8117731@tc7-on>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Andreas Joseph Krogh <andreas@visena.com> wrote:

> Some-times it performs much better (but still not good)

As has already been suggested, that difference is almost certainly 
due to differences in how much of the necessary data is cached or 
what the query is competing with.

> Does anyone see anything obvious or have any hints what to
> investigate further?

We need more information to be able to say much.  Please review
this page:

http://wiki.postgresql.org/wiki/SlowQueryQuestions

Knowing more about the hardware and the tables (including all
indexes) would help a lot, as well as all non-default configuration
settings.  In particular, I'm curious whether there is an index on
the message_id column of origo_email_delivery.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (3+ messages)

Message-ID: <1407333872.37969.YahooMailNeo@web122303.mail.ne1.yahoo.com>
Permalink:  ../1407333872.37969.YahooMailNeo@web122303.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1407333872.37969.YahooMailNeo@web122303.mail.ne1.yahoo.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: kgrittn@ymail.com, andreas@visena.com
  Subject: Re: Query performing very bad and sometimes good
  In-Reply-To: <1407333872.37969.YahooMailNeo@web122303.mail.ne1.yahoo.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