pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: pgsql-sql@postgresql.org
Cc: Wiebe Cazemier <halfgaar@gmx.net>
Subject: Re: Joins on many-to-many relations.
Date: Thu, 15 Mar 2007 09:05:45 -0500
Message-ID: <a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.gmail.com> (raw)
In-Reply-To: <et9r79$kj5$1@sea.gmane.org>
References: <et94vu$qdt$1@sea.gmane.org>
	<5.2.1.1.0.20070314133826.050002b0@pop6.sympatico.ca>
	<et9r79$kj5$1@sea.gmane.org>

On 3/14/07, Wiebe Cazemier <halfgaar@gmx.net> wrote:
> I discovered that removing the subselect (the entire second condition of
> the join actually) is not the only thing that speeds it up. If I remove
> the LIKE check on account.description, it's also a lot faster (152 ms
> as opposed to 2915 ms), although not as fast as without the subselect.
> I don't understand why that makes such a big difference. There is an
> index on upper() on the field.



view thread (6+ messages)  latest in thread

Message-ID: <a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.gmail.com>
Permalink:  ../a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rdeleonp@gmail.com, halfgaar@gmx.net
  Subject: Re: Joins on many-to-many relations.
  In-Reply-To: <a55915760703150705j3b4c2b3esd94d4a27d31ee658@mail.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