Return-Path: Delivered-To: 2-oracle-l@orafaq.com Received: (qmail 25946 invoked from network); 8 Jan 2008 12:36:24 -0600 Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180) by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 8 Jan 2008 12:36:24 -0600 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 59A9B7E0DA3; Tue, 8 Jan 2008 13:36:24 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32655-07; Tue, 8 Jan 2008 13:36:24 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C0B6D7E0D2E; Tue, 8 Jan 2008 13:36:23 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 08 Jan 2008 12:48:30 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E29297E0BD4 for ; Tue, 8 Jan 2008 12:48:29 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26738-03 for ; Tue, 8 Jan 2008 12:48:29 -0500 (EST) Received: from mx02.mailboxcop.com (mx02.mailboxcop.com [206.125.223.72]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5F2F47E0AE1 for ; Tue, 8 Jan 2008 12:48:28 -0500 (EST) Received: from secure9.apollohosting.com (secure9.apollohosting.com [206.125.217.251]) by mx02.mailboxcop.com (8.13.8/8.13.8) with ESMTP id m08HmRWj015558 for ; Tue, 8 Jan 2008 11:48:27 -0600 Received: (qmail 25678 invoked by uid 48); 8 Jan 2008 10:48:13 -0700 Received: from 8.8.254.55 ([8.8.254.55]) by webmail.evdbt.com (Horde MIME library) with HTTP; Tue, 08 Jan 2008 10:48:12 -0700 Message-ID: <20080108104812.rxtp0hsk8owkgkok@webmail.evdbt.com> Date: Tue, 08 Jan 2008 10:48:12 -0700 From: Tim Gorman To: moabrivers@gmail.com Cc: oracle-l@freelists.org Subject: Re: Partitioned Table Slower - Where's Tim Gorman when you need him? References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-Spam-Score: undef - evdbt.com is whitelisted. X-CanItPRO-Stream: outgoing (inherits from default) X-Canit-Stats-ID: 179277644 - c8ed2ceecf5d X-Antispam-Training-Forget: http://mailboxcop.com/canit/b.php?i9277644&mÈed2ceecf5d&c=f X-Antispam-Training-Nonspam: http://mailboxcop.com/canit/b.php?i9277644&mÈed2ceecf5d&c=n X-Antispam-Training-Spam: http://mailboxcop.com/canit/b.php?i9277644&mÈed2ceecf5d&c=s X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.168.15.4 X-archive-position: 4349 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-to: oracle-l-bounce@freelists.org X-original-sender: tim@evdbt.com Precedence: normal Reply-to: tim@evdbt.com List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: oracle-l X-List-ID: oracle-l List-subscribe: List-owner: List-post: List-archive: X-list: oracle-l X-Virus-Scanned: Debian amavisd-new at localhost.localdomain X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char C8 hex) in message header 'X-Antispam-Training-Forget': X-Antispam-Training-Forget: ...op.com/canit/b.php?i\0279277644&m\310ed2ceecf5d&c=f\n Brian, At first blush, looking at the two TKPROF excerpts, I would speculate that the index ASN_PART_ORG_IX has somehow been defined as a global index, not as a local index, although you state that it is both local and prefixed. At any rate, from the TKPROF output, we can see that index range scan has pruned to the single index partition, but could you post the DDL for the indexes, both for ASN_ORG_IX as well as ASN_PART_ORG_IX? In general, knowing definitions is useless without also knowing utilization, so could you post the SQL used in both cases, including any hints used to generate these test cases? Ideally, we should see all sections of the TKPROF output, but I'm guessing you edited for brevity and clarity. If they are huge, then just the FROM and WHERE clauses might be sufficient, I guess... Thanks! -Tim Quoting Brian Lucas : > All, I'm experimenting with partitioning in 10g (10.2.0.3 64-bit) over > Oracle Enterprise Linux 5 64-bit. I am using ASM over FC tied in to a > NetApp FAS 3020 HA cluster. I have a table with 8 million records of which > one particular group of records takes about 30%. In trying to see if > partitioning them off to their own partition with local prefixed indexes > matching the indexes of the original heap table, I'm finding that the > original heap table query with regular btree indexes is consistently faster > and shows a lower total cost in the explain plan. My query specifically > includes a predicate that causes the optimizer to select the partitioned > indexes and partitioned section of the table. The cost using the heap table > is 6 and the cost of the partitioned table is over 8000. All statistics > have been gathered and updated. This is a multijoin query of 4 tables and > only the one large table have I chose for this partition test. Some tkprof > analysis shows that using the partition results in it reading over 2 million > records whereas the same index on the heap table only reads about 51000. > The query portion of tkprof shows the large discrepancy. Can someone help > my understanding of why the partition chooses to read all of the records in > the partition whereas the heap table doesn't? Does it have to do with the > selectivity of the index at the local partition level and that somehow the > btree's are built differently within a partition than they are for heaps? -- http://www.freelists.org/webpage/oracle-l