Re: order of nested loop

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <joseph(at)xtenit(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: order of nested loop
Date: 2003-06-17 23:07:02
Message-ID: 17457.1055891222@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph Shraibman <joseph(at)xtenit(dot)com> writes:
> Well there is no reason for it to look at all the rows in d, since it
> has a filter on u that should produce much less rows than there on in
> d.

What filter? The scan is producing 250 thousand rows, man! You expect
it to join 250k rows in no time flat?

You can try forcing merge or nestloop joins with the enable_foo
switches, but I suspect you'll find that for the problem as posed,
this is the best plan available. To make it go faster you will need a
way to eliminate a large percentage of one or both tables before the
join happens.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-06-17 23:29:16 Re: order of nested loop
Previous Message Joseph Shraibman 2003-06-17 23:03:37 EFFECTIVE_CACHE_SIZE