From oracle-l-bounce@freelists.org  Wed May  5 08:12:23 2004
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air189.startdedicated.com (root@localhost)
 by orafaq.com (8.11.6/8.11.6) with ESMTP id i45DC8902285
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 08:12:18 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i45DBw602244
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 08:12:08 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id ABA4572CEA6; Wed,  5 May 2004 08:01:57 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 19934-86; Wed,  5 May 2004 08:01:57 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id CF9C372CDCD; Wed,  5 May 2004 08:01:55 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 05 May 2004 08:00:37 -0500 (EST)
X-Original-To: oracle-l@freelists.org
Delivered-To: oracle-l@freelists.org
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2865872CE40
 for <oracle-l@freelists.org>; Wed,  5 May 2004 08:00:37 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 19984-38 for <oracle-l@freelists.org>;
 Wed,  5 May 2004 08:00:36 -0500 (EST)
Received: from web20726.mail.yahoo.com (web20726.mail.yahoo.com [216.136.226.109])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 2766C72CCC9
 for <oracle-l@freelists.org>; Wed,  5 May 2004 08:00:34 -0500 (EST)
Message-ID: <20040505131420.73214.qmail@web20726.mail.yahoo.com>
Received: from [199.230.26.128] by web20726.mail.yahoo.com via HTTP; Wed, 05 May 2004 06:14:20 PDT
Date: Wed, 5 May 2004 06:14:20 -0700 (PDT)
From: Sanjay Mishra <smishra_97@yahoo.com>
Subject: Re: Partition Pruning
To: oracle-l@freelists.org
In-Reply-To: <BAY9-DAV3tneqdGSyMp0000601f@hotmail.com>
MIME-Version: 1.0
Content-type: text/plain
X-Virus-Scanned: by amavisd-new at freelists.org
Content-Transfer-Encoding: 8bit
X-archive-position: 4422
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: smishra_97@yahoo.com
Precedence: normal
Reply-To: oracle-l@freelists.org
X-list: oracle-l
X-Virus-Scanned: by amavisd-new at freelists.org

Mike
 
I also have Local partitioned index on mgrid and I need to change the query to use partition instead of scanning all 100 partitions which is reallly very slow
 
Thanks
sanjay
Michael McMullen <ganstadba@hotmail.com> wrote:
Why would you expect it to partition prune on on the manager table? It's
partitioned on mgrid not empid and your join is where a.empid = b.empid.

Mike
ganstadba@hotmail.com
----- Original Message -----
From: "Sanjay Mishra" 
To: 
Sent: Tuesday, May 04, 2004 12:46 PM
Subject: Partition Pruning


> Hi
>
> I had a table emp that is range partitioned on
> empid,dtjoin . It has another column created
>
> and another table manager which is also range
> partitioned on mgrid,dtpromotion
>
> I am running query
>
> select ....
> from emp a , manager b
> where a.empid=b.empid
> and a.created > sysdate -1 and a.created < sysdate -0
>
>
> Now the plan is using the Partition on emp table but
> doing FTS of manager which has approx 100 partitions
>
> Tx

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

