pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: drum.lucas@gmail.com
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Optimize Query
Date: Sun, 14 Feb 2016 10:56:36 +0100
Message-ID: <B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.com> (raw)
In-Reply-To: <CAE_gQfUZgCgmiCEKB7p5-pAfVHD7WDUJyPie4h2A6xEezbD7YQ@mail.gmail.com>
References: <CAE_gQfUASrBPpH6j8+fJNgKDUa_5EnGZEk8U9pXXGFemJg5xnQ@mail.gmail.com>
	<CANu8Fixp-oAaJpUAO8cZ-okbXQCw=izwBbygiJmzaTWUCwQpRw@mail.gmail.com>
	<CAE_gQfWEbF6jdEDNeh_8ss5y6Zg+L4zSWfoZt=6Rqmwyt17Oxg@mail.gmail.com>
	<CANu8FixNSp0OVd0M5=af9FQO94cZ0qCzqL3UK4uu3rV_7vuq5A@mail.gmail.com>
	<CAE_gQfVd8AFqBfpwkaHzDU++bvURB2ZAfftL2WwJW3siT4oyrA@mail.gmail.com>
	<CAE_gQfUZgCgmiCEKB7p5-pAfVHD7WDUJyPie4h2A6xEezbD7YQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>


> On 13 Feb 2016, at 11:21, drum.lucas@gmail.com wrote:
> 
> Anyone can help with that please?
> 
> Cheers

What would help is:
1. to post an actual query that you need optimised and
2. an explain analyze of that query.

What you posted in your original message was some kind of query-template with enough placeholders and views that there is no way to predict how that's going to perform without at least knowing what goes into the placeholders and how the views are built up.

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



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



view thread (14+ messages)  latest in thread

Message-ID: <B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.com>
Permalink:  ../B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.com/
Also on:    postgresql.org/message-id/B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: haramrae@gmail.com, drum.lucas@gmail.com
  Subject: Re: Optimize Query
  In-Reply-To: <B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.com>
  References: <CAE_gQfUASrBPpH6j8+fJNgKDUa_5EnGZEk8U9pXXGFemJg5xnQ@mail.gmail.com> <CANu8Fixp-oAaJpUAO8cZ-okbXQCw=izwBbygiJmzaTWUCwQpRw@mail.gmail.com> <CAE_gQfWEbF6jdEDNeh_8ss5y6Zg+L4zSWfoZt=6Rqmwyt17Oxg@mail.gmail.com> <CANu8FixNSp0OVd0M5=af9FQO94cZ0qCzqL3UK4uu3rV_7vuq5A@mail.gmail.com> <CAE_gQfVd8AFqBfpwkaHzDU++bvURB2ZAfftL2WwJW3siT4oyrA@mail.gmail.com> <CAE_gQfUZgCgmiCEKB7p5-pAfVHD7WDUJyPie4h2A6xEezbD7YQ@mail.gmail.com> <B072E72B-0546-415D-8944-ABCD8B052D6C@gmail.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