pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Frank Jördens <frank@woome.com>
Cc: pgsql-sql@postgresql.org, Nic Ferrier <nferrier@woome.com>
Cc: Edward George <ed@woome.com>
Cc: Seb Potter <seb@woome.com>
Cc: Hannu Krosing <hannu@2ndquadrant.com>
Subject: Re: Make the planner smarter about idiosyncratic (or broken) ORM behaviour
Date: Fri, 22 May 2009 11:40:03 +0100
Message-ID: <1242988803.27960.382.camel@ebony.2ndQuadrant> (raw)
In-Reply-To: <7d10d2df0905220233v3e54ab34lb9c3530fe3543a5c@mail.gmail.com>
References: <7d10d2df0905220233v3e54ab34lb9c3530fe3543a5c@mail.gmail.com>


On Fri, 2009-05-22 at 10:33 +0100, Frank Jördens wrote:
> Almost all of the 8k queries per second that are hitting our database
> are generated by a web development framework's ORM (Django), and some
> of the syntax there is quite mad. Possibly the worst tic exhibited by
> the translation layer is that if you filter a query on an object by
> more than one property on a related object it will create a join for
> each property:

It's a known issue that we're looking to work on in the next release.

Work started in 8.4, though was more complex than first appeared and we
didn't complete it in time for the dev deadline.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support




view thread (4+ messages)

Message-ID: <1242988803.27960.382.camel@ebony.2ndQuadrant>
Permalink:  ../1242988803.27960.382.camel@ebony.2ndQuadrant/
Also on:    postgresql.org/message-id/1242988803.27960.382.camel@ebony.2ndQuadrant

 · 

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-sql@postgresql.org
  Cc: simon@2ndQuadrant.com, frank@woome.com, nferrier@woome.com, ed@woome.com, seb@woome.com, hannu@2ndquadrant.com
  Subject: Re: Make the planner smarter about idiosyncratic (or broken) ORM behaviour
  In-Reply-To: <1242988803.27960.382.camel@ebony.2ndQuadrant>

* 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