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: Partitioned tables & indexes

RE: Partitioned tables & indexes

From: Mercadante, Thomas F (LABOR) <Thomas.Mercadante_at_labor.state.ny.us>
Date: Thu, 5 May 2005 07:51:03 -0400
Message-ID: <ABB9D76E187C5146AB5683F5A07336FF16E58D@EXCNYSM0A1AJ.nysemail.nyenet>


It looks to me like you have a design problem. You partitioned by month but you are querying by quarter. Maybe you should have partitioned by quarter - you know - another column in the table that a trigger would populate that could hold values like 200501 which means Jan. thru March of 2005?

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of sol beach Sent: Wednesday, May 04, 2005 5:02 PM
To: Oracle-L Freelists
Subject: Partitioned tables & indexes

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=3D
.
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 >=3D3D TO_DATE('2005-01-01 00:00:00','YYYY-MM-DD HH24:MI=3D
: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
--

http://www.freelists.org/webpage/oracle-l Received on Thu May 05 2005 - 07:55:32 CDT

Original text of this message

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