From oracle-l-bounce@freelists.org Wed May 4 17:06:39 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j44M6dHb005671 for ; Wed, 4 May 2005 17:06:39 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j44M6d4Z005667 for ; Wed, 4 May 2005 17:06:39 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8340D190B62; Wed, 4 May 2005 16:04:04 -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 14623-08; Wed, 4 May 2005 16:04:04 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 09DBE190D74; Wed, 4 May 2005 16:04:03 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tEDqdFz02zQTDUG71fiA8xZ9pfUgUhAxukM+8KDavZcJf/R9B9oaH3UcREf6+H6G8AfL8Jl8JxjCC54/uWixUhbvKzL6BhrhKnEKzyhbX3hCctC6WAAGe8r1hh276CQsNxHgkPWuyBY/rP0bAGy2Z1q6WfDgylgkRq9AByBNPRI= Message-ID: <40a16b36050504140231519d65@mail.gmail.com> Date: Wed, 4 May 2005 14:02:13 -0700 From: sol beach To: Oracle-L Freelists Subject: Partitioned tables & indexes Mime-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-archive-position: 19352 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: sol.beach@gmail.com Precedence: normal Reply-To: sol.beach@gmail.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL autolearn=ham version=2.63 Oracle v9.2 I'll admit I don't have a lot of real world experience using partitioned tables or indexes. I've inherited an application which has a couple of tables partitioned on "DATE_CREATED"; where each partition contains 1 month data. Records are ONLY inserted into this table at a rate about a million per day= . There is an index (partitioned) on the DATE_CREATED column. I've run EXPLAIN PLANS on a half dozen or more SQL queries this morning all of which have a where clause similar to the following: WHERE date_created >=3D TO_DATE('2005-01-01 00:00:00','YYYY-MM-DD HH24:MI= :SS') AND date_created < TO_DATE('2005-05-04 00:00:00','YYYY-MM-DD HH24:MI:SS') NONE of queries ever used the index & always did a FTS. What could be done to actually start using this index? The bottom line problem is that queries against this table are just taking longer & longer to complete. Any ideas, hints, suggestions or Fine Manual names so I can RTFM would be welcomed. TIA! -- http://www.freelists.org/webpage/oracle-l