Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: USE_MERGE hint and the correct way to hint

Re: USE_MERGE hint and the correct way to hint

From: Arul Ramachandran <contactarul_at_gmail.com>
Date: Wed, 7 Feb 2007 13:30:22 -0800
Message-ID: <1c1a62990702071330t43b8f5cenc0f823538c7d1860@mail.gmail.com>


Nice example to explain this.

I cheated with the query, to make it look simple I put a select *, though there were no columns selected from CUS_ACC.

Thanks,
Arul

On 2/7/07, Nigel Thomas <nigel_cl_thomas_at_yahoo.com> wrote:
>
> >I played around with changing the order of the tables
> >in the FROM clause and in the use_merge hint. It does
> >change the order in the plan, but the logical reads come
> >to the same.
> Arul
>
> A merge join is like a zipper - you take two (sorted) rowsets and read
> through both of them concurrently. So (in principle, in a simple case)
> there's no difference between merge-joining A to B or merge joining B to A;
>
>
> I'm intrigued that there's no table access to CUS_ACC. Does that contain
> only the ACC_ID column, whose value we can derive from the PK_CUS_ACC index?
> Or is it index-organised?
>
>
> Nigel
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 07 2007 - 15:30:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US